Skip to content

Commit ff19fbe

Browse files
authored
[elsa] enhance reference-type config protection (#125)
1 parent fbe954a commit ff19fbe

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

framework/elsa/fit-elsa-react/src/data/GraphOperator.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,11 @@ const graphOperator = (graphString) => {
148148
return;
149149
}
150150

151-
// 处理对象
152-
if (typeof update === 'object') {
153-
updateConfig(correspondingConfig, update);
154-
return;
155-
}
156-
157151
// 如果类型是reference,则不进行修改。
158-
if (correspondingConfig.from === FROM_TYPE.REFERENCE) {
152+
if (String(correspondingConfig.from ?? "").toLowerCase() === FROM_TYPE.REFERENCE.toLowerCase()) {
159153
return;
160154
}
155+
161156
updateConfig(correspondingConfig, update);
162157
}
163158
});

0 commit comments

Comments
 (0)