From c64dd0d6ffeae6f632455984c3e40666566bb47b Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Thu, 5 Sep 2024 11:24:51 -0600 Subject: [PATCH] refactor: add missing fields --- .../__test__/traefik/server/update-server-config.test.ts | 1 + apps/dokploy/components/ui/chart.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/dokploy/__test__/traefik/server/update-server-config.test.ts b/apps/dokploy/__test__/traefik/server/update-server-config.test.ts index 9ffa832c..8dd5dbc0 100644 --- a/apps/dokploy/__test__/traefik/server/update-server-config.test.ts +++ b/apps/dokploy/__test__/traefik/server/update-server-config.test.ts @@ -22,6 +22,7 @@ const baseAdmin: Admin = { letsEncryptEmail: null, sshPrivateKey: null, enableDockerCleanup: false, + enableLogRotation: false, }; beforeEach(() => { diff --git a/apps/dokploy/components/ui/chart.tsx b/apps/dokploy/components/ui/chart.tsx index 469ac8c8..05611162 100644 --- a/apps/dokploy/components/ui/chart.tsx +++ b/apps/dokploy/components/ui/chart.tsx @@ -137,7 +137,7 @@ const ChartTooltipContent = React.forwardRef< } const [item] = payload; - const key = `${labelKey || item.dataKey || item.name || "value"}`; + const key = `${labelKey || item?.dataKey || item?.name || "value"}`; const itemConfig = getPayloadConfigFromPayload(config, item, key); const value = !labelKey && typeof label === "string"