mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 08:25:47 +01:00
🔒 Add guard for Docker socket
This commit is contained in:
@@ -26,7 +26,8 @@ export default function DockerDrawer(props: any) {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
reload();
|
reload();
|
||||||
}, []);
|
}, []);
|
||||||
|
// Check if the user has at least one container
|
||||||
|
if (containers.length < 1) return null;
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Drawer opened={opened} onClose={() => setOpened(false)} padding="xl" size="full">
|
<Drawer opened={opened} onClose={() => setOpened(false)} padding="xl" size="full">
|
||||||
|
|||||||
Reference in New Issue
Block a user