mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
fix: variable plugin sync outputs.properties
This commit is contained in:
parent
f8f5b35872
commit
730b6bb8b4
@ -53,7 +53,7 @@ export const createVariablePlugin: PluginCreator<VariablePluginOptions> = define
|
|||||||
syncOutputs(form.getValueIn('outputs'));
|
syncOutputs(form.getValueIn('outputs'));
|
||||||
// Listen outputs change
|
// Listen outputs change
|
||||||
form.onFormValuesChange(props => {
|
form.onFormValuesChange(props => {
|
||||||
if (props.name === 'outputs') {
|
if (props.name.match(/^outputs/)) {
|
||||||
syncOutputs(form.getValueIn('outputs'));
|
syncOutputs(form.getValueIn('outputs'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -53,7 +53,7 @@ export const createVariablePlugin: PluginCreator<VariablePluginOptions> = define
|
|||||||
syncOutputs(form.getValueIn('outputs'));
|
syncOutputs(form.getValueIn('outputs'));
|
||||||
// Listen outputs change
|
// Listen outputs change
|
||||||
form.onFormValuesChange(props => {
|
form.onFormValuesChange(props => {
|
||||||
if (props.name === 'outputs') {
|
if (props.name.match(/^outputs/)) {
|
||||||
syncOutputs(form.getValueIn('outputs'));
|
syncOutputs(form.getValueIn('outputs'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user