mirror of https://github.com/portainer/portainer
fix(container): get old container info correctly EE-6716 (#11216)
parent
253cda8cef
commit
88185d7f6d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue