mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-30 15:21:02 +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]);
|
||||
|
||||
useEffect(() => {
|
||||
updateResource(resourceValueOptions[0]?.label || editResource.value, 'value');
|
||||
setResource({ ...resource, value: resourceValueOptions[0]?.label || editResource.value });
|
||||
// fix bug :Resolve the issue of incorrect parameter echo for resources under app editing
|
||||
updateResource(editResource.value || resourceValueOptions[0]?.label, 'value');
|
||||
setResource({ ...resource, value: editResource.value || resourceValueOptions[0]?.label });
|
||||
}, [resourceValueOptions]);
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user