mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-02 08:40:36 +00:00
fix: Resolve the issue of incorrect parameter echo for resources under app editing (#1391)
This commit is contained in:
parent
01a8a0fff6
commit
048ec71bdf
@ -61,8 +61,9 @@ export default function ResourceCard(props: IProps) {
|
|||||||
}, [resourceType]);
|
}, [resourceType]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
updateResource(resourceValueOptions[0]?.label || editResource.value, 'value');
|
// fix bug :Resolve the issue of incorrect parameter echo for resources under app editing
|
||||||
setResource({ ...resource, value: resourceValueOptions[0]?.label || editResource.value });
|
updateResource(editResource.value || resourceValueOptions[0]?.label, 'value');
|
||||||
|
setResource({ ...resource, value: editResource.value || resourceValueOptions[0]?.label });
|
||||||
}, [resourceValueOptions]);
|
}, [resourceValueOptions]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user