Skip to content

Commit d97b60d

Browse files
committed
Retrieve all trigger types parameter.
If we don't do that, an error is thrown.
1 parent c22c5cc commit d97b60d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apps/st2-rules/rules-details.component.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import EnforcementPanel from './panels/enforcements';
4444
packSpec,
4545
}, props) => ({
4646
rule,
47-
47+
4848
enforcements,
4949

5050
triggerParameters,

apps/st2-rules/rules-panel.component.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,15 @@ export default class RulesPanel extends React.Component {
100100
type: 'FETCH_TRIGGERS',
101101
promise: api.request({
102102
path: '/triggertypes',
103-
query: {
103+
// NOTE: If we don't retrieve all the attributes, "TypeError: Cannot read property 'properties' of undefined"
104+
// error is thrown
105+
/*query: {
104106
include_attributes: [
105107
'ref',
106108
'description',
107109
'parameters_schema',
108110
],
109-
},
111+
},*/
110112
})
111113
.catch((err) => {
112114
notification.error('Unable to retrieve trigger spec.', { err });

0 commit comments

Comments
 (0)