mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-23 20:28:47 +00:00
fix(dashboard): update Docker cleanup toggle logic to prioritize server settings
This commit is contained in:
+3
-1
@@ -20,7 +20,9 @@ export const ToggleDockerCleanup = ({ serverId }: Props) => {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const enabled = data?.user.enableDockerCleanup || server?.enableDockerCleanup;
|
const enabled = serverId
|
||||||
|
? server?.enableDockerCleanup
|
||||||
|
: data?.user.enableDockerCleanup;
|
||||||
|
|
||||||
const { mutateAsync } = api.settings.updateDockerCleanup.useMutation();
|
const { mutateAsync } = api.settings.updateDockerCleanup.useMutation();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user