fix(container): get old container info correctly EE-6716 (#11215)

pull/11290/head
cmeng 2024-03-01 09:14:26 +13:00 committed by GitHub
parent 8ad11fc88f
commit a7eaa0f3fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 4 deletions

View File

@ -189,11 +189,10 @@ function useOldContainer(initialName?: string) {
name: [`^/${debouncedName}$`],
},
});
useEffect(() => {
if (initialName && initialName !== name) {
setName(initialName);
}
}, [initialName, name]);
setName(initialName);
}, [initialName]);
return {
syncName: setName,