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,
sshPrivateKey: null,
enableDockerCleanup: false,
enableLogRotation: false,
};
beforeEach(() => {

View File

@@ -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"