mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-28 13:48:13 +02:00
Speed up when the button shows
This commit is contained in:
parent
f438d2ddbf
commit
17919192e0
3 changed files with 10 additions and 19 deletions
|
@ -78,12 +78,6 @@ export const ContainersSelector: FC<ContainerSelectorProps> = ({
|
|||
}
|
||||
}, [isAvailable]);
|
||||
|
||||
useEffect(() => {
|
||||
if (isAvailable && containers.length === 0) {
|
||||
fetchContainers();
|
||||
}
|
||||
}, [isAvailable, containers.length]);
|
||||
|
||||
if (!site || !isAvailable) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue