Skip to content

Commit 35e1f2b

Browse files
committed
Fixed bug which caused sdk step loading to fail if no unsecure config was existing
1 parent 746e5ed commit 35e1f2b

File tree

1 file changed

+2
-2
lines changed
  • src/web/Xrm.Oss.XTL.Editor/components

1 file changed

+2
-2
lines changed

src/web/Xrm.Oss.XTL.Editor/components/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default class WYSIWYGEditor extends React.PureComponent<any, WYSIWYGEdito
172172

173173
setSelectedSdkStep(eventKey: any) {
174174
const selectedSdkStep = this.state.pluginType.plugintype_sdkmessageprocessingstep.value.find((step: any) => step.sdkmessageprocessingstepid === eventKey);
175-
const config = JSON.parse(selectedSdkStep.configuration);
175+
const config = JSON.parse(selectedSdkStep.configuration) || {};
176176

177177
this.setState({
178178
executionCriteria: config.executionCriteria || "",
@@ -185,7 +185,7 @@ export default class WYSIWYGEditor extends React.PureComponent<any, WYSIWYGEdito
185185
saveSelectedSdkStep() {
186186
this.setState({requestPending: true});
187187

188-
const config = JSON.parse(this.state.selectedSdkStep.configuration);
188+
const config = JSON.parse(this.state.selectedSdkStep.configuration) || {};
189189

190190
config.executionCriteria = this.state.executionCriteria;
191191
config.template = this.state.inputTemplate;

0 commit comments

Comments
 (0)