fix(plugin-workflow): fix sync option display incorrectly (#6595)

This commit is contained in:
Junyi 2025-03-31 22:51:19 +08:00 committed by GitHub
parent 9db2c533e3
commit 4ef6b9037d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,11 +61,10 @@ function SyncOptionSelect(props) {
if (trigger.sync != null) {
field.setValue(trigger.sync);
} else {
field.setInitialValue(false);
field.setInitialValue(props.value ?? false);
}
}
}, [record.id, field, workflowPlugin.triggers]);
}, [record.id, field, workflowPlugin.triggers, record.type, props.value]);
return <RadioWithTooltip {...props} />;
}