We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff19fbe commit c487977Copy full SHA for c487977
framework/elsa/fit-elsa-react/src/data/GraphOperator.js
@@ -79,6 +79,13 @@ const graphOperator = (graphString) => {
79
if (!keys || keys.length === 0) {
80
throw new Error('Keys cannot be empty');
81
}
82
+
83
+ if (keys.length === 1) {
84
+ const config = getConfigByKeys(keys);
85
+ updateConfig(config, updates);
86
+ return;
87
+ }
88
89
// 获取除最后一层外的所有路径
90
const parentKeys = keys.slice(0, -1);
91
const lastKey = keys[keys.length - 1];
0 commit comments