Skip to content

Commit 12e1b6b

Browse files
committed
help needed
1 parent 6cefc93 commit 12e1b6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/compass-data-modeling/src/components/diagram-card.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ export function DiagramCard({
8787
onDelete: (id: string) => void;
8888
}) {
8989
const darkmode = useDarkMode();
90-
const formattedDate = useFormattedDate(diagram.lastModified);
90+
// the hook does support undefined, but the function overload is somehow not transferred here
91+
const formattedDate = useFormattedDate(diagram.lastModified as number);
9192
return (
9293
<Card
9394
className={diagramCardStyles}

0 commit comments

Comments
 (0)