🔒 Add guard for Docker socket

This commit is contained in:
Thomas "ajnart" Camlong
2022-07-20 14:21:11 +02:00
parent 7065b06c82
commit 649f7521bc

View File

@@ -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">