Skip to content

Commit bf23f3f

Browse files
[autofix.ci] apply automated fixes (attempt 2/3)
1 parent 4801739 commit bf23f3f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apps/dokploy/components/dashboard/application/advanced/volumes/show-volumes.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ export const ShowVolumes = ({ id, type }: Props) => {
6262
</AddVolumes>
6363
</CardHeader>
6464
<CardContent className="flex flex-col gap-4">
65-
{!data?.mounts?.length &&
66-
!Object.keys(composeVolumes || {}).length && (
65+
{!data?.mounts?.length && !Object.keys(composeVolumes || {}).length && (
6766
<div className="flex w-full flex-col items-center justify-center gap-3 pt-10">
6867
<Package className="size-8 text-muted-foreground" />
6968
<span className="text-base text-muted-foreground">

apps/dokploy/server/api/routers/compose.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,10 @@ export const composeRouter = createTRPCRouter({
403403
mountPath = parts[1];
404404
}
405405
}
406-
} else if (typeof volumeEntry === "object" && volumeEntry !== null) {
406+
} else if (
407+
typeof volumeEntry === "object" &&
408+
volumeEntry !== null
409+
) {
407410
// Long syntax: { type: 'volume', source: 'volume_name', target: '/path' }
408411
if (
409412
(volumeEntry as any).type === "volume" ||

0 commit comments

Comments
 (0)