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}$`],
|
name: [`^/${debouncedName}$`],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (initialName && initialName !== name) {
|
setName(initialName);
|
||||||
setName(initialName);
|
}, [initialName]);
|
||||||
}
|
|
||||||
}, [initialName, name]);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
syncName: setName,
|
syncName: setName,
|
||||||
|
|
Loading…
Reference in New Issue