diff --git a/web/components/app/resource-card.tsx b/web/components/app/resource-card.tsx index 0d24f88ef..39fa20406 100644 --- a/web/components/app/resource-card.tsx +++ b/web/components/app/resource-card.tsx @@ -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 (