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