Skip to content

Commit c039e63

Browse files
committed
refactor(dokploy): reorganize imports and simplify ulimitsSwarm assignment
- Moved the Tooltip imports to a more appropriate location for better readability. - Simplified the assignment of ulimitsSwarm to ensure it directly accesses the data property.
1 parent 65ffc63 commit c039e63

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ import {
2121
FormLabel,
2222
FormMessage,
2323
} from "@/components/ui/form";
24+
import { Input } from "@/components/ui/input";
2425
import {
2526
createConverter,
2627
NumberInputWithSteps,
2728
} from "@/components/ui/number-input";
28-
import {
29-
Tooltip,
30-
TooltipContent,
31-
TooltipProvider,
32-
TooltipTrigger,
33-
} from "@/components/ui/tooltip";
34-
import { Input } from "@/components/ui/input";
3529
import {
3630
Select,
3731
SelectContent,
3832
SelectItem,
3933
SelectTrigger,
4034
SelectValue,
4135
} from "@/components/ui/select";
36+
import {
37+
Tooltip,
38+
TooltipContent,
39+
TooltipProvider,
40+
TooltipTrigger,
41+
} from "@/components/ui/tooltip";
4242
import { api } from "@/utils/api";
4343

4444
const CPU_STEP = 0.25;
@@ -155,7 +155,7 @@ export const ShowResources = ({ id, type }: Props) => {
155155
cpuReservation: data?.cpuReservation || undefined,
156156
memoryLimit: data?.memoryLimit || undefined,
157157
memoryReservation: data?.memoryReservation || undefined,
158-
ulimitsSwarm: (data as any)?.ulimitsSwarm || [],
158+
ulimitsSwarm: data?.ulimitsSwarm || [],
159159
});
160160
}
161161
}, [data, form, form.reset]);

0 commit comments

Comments
 (0)