mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 11:56:29 +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
|
<CollectionFieldSelect
|
||||||
collection={config.collection}
|
collection={config.collection}
|
||||||
value={value}
|
value={value}
|
||||||
onChange={(value) => {
|
onChange={(path) => {
|
||||||
onChange({ type, options: { ...options, path: value?.join('.') } });
|
onChange({ type, options: { ...options, path } });
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
@ -54,8 +54,8 @@ export default {
|
|||||||
<CollectionFieldSelect
|
<CollectionFieldSelect
|
||||||
collection={config.collection}
|
collection={config.collection}
|
||||||
value={value}
|
value={value}
|
||||||
onChange={(value) => {
|
onChange={(path) => {
|
||||||
onChange({ type, options: { ...options, path: value?.join('.') } });
|
onChange({ type, options: { ...options, path } });
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
@ -138,7 +138,7 @@ export default {
|
|||||||
collection={workflow.config.collection}
|
collection={workflow.config.collection}
|
||||||
value={value}
|
value={value}
|
||||||
onChange={(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