refactor: add missing fields

This commit is contained in:
Mauricio Siu
2024-09-05 11:24:51 -06:00
parent bcbc5da30e
commit c64dd0d6ff
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ const baseAdmin: Admin = {
letsEncryptEmail: null, letsEncryptEmail: null,
sshPrivateKey: null, sshPrivateKey: null,
enableDockerCleanup: false, enableDockerCleanup: false,
enableLogRotation: false,
}; };
beforeEach(() => { beforeEach(() => {

View File

@@ -137,7 +137,7 @@ const ChartTooltipContent = React.forwardRef<
} }
const [item] = payload; 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 itemConfig = getPayloadConfigFromPayload(config, item, key);
const value = const value =
!labelKey && typeof label === "string" !labelKey && typeof label === "string"