mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:29:16 +00:00
fix(plugin-workflow): fix select value (#600)
This commit is contained in:
parent
f951ba1745
commit
39a3146f14
@ -49,8 +49,8 @@ export default {
|
||||
<CollectionFieldSelect
|
||||
collection={config.collection}
|
||||
value={value}
|
||||
onChange={(value) => {
|
||||
onChange({ type, options: { ...options, path: value?.join('.') } });
|
||||
onChange={(path) => {
|
||||
onChange({ type, options: { ...options, path } });
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
@ -54,8 +54,8 @@ export default {
|
||||
<CollectionFieldSelect
|
||||
collection={config.collection}
|
||||
value={value}
|
||||
onChange={(value) => {
|
||||
onChange({ type, options: { ...options, path: value?.join('.') } });
|
||||
onChange={(path) => {
|
||||
onChange({ type, options: { ...options, path } });
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
@ -138,7 +138,7 @@ export default {
|
||||
collection={workflow.config.collection}
|
||||
value={value}
|
||||
onChange={(value) => {
|
||||
onChange({ type, options: { ...options, path: `data.${value.join('.')}` } });
|
||||
onChange({ type, options: { ...options, path: `data.${value}` } });
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user