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

pull/11289/head
cmeng 2024-03-01 09:14:19 +13:00 committed by GitHub
parent 253cda8cef
commit 88185d7f6d
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}$`], name: [`^/${debouncedName}$`],
}, },
}); });
useEffect(() => { useEffect(() => {
if (initialName && initialName !== name) {
setName(initialName); setName(initialName);
} }, [initialName]);
}, [initialName, name]);
return { return {
syncName: setName, syncName: setName,