We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd84dc commit 7c11415Copy full SHA for 7c11415
packages/compass-data-modeling/src/components/diagram-card.tsx
@@ -87,7 +87,8 @@ export function DiagramCard({
87
onDelete: (id: string) => void;
88
}) {
89
const darkmode = useDarkMode();
90
- const formattedDate = useFormattedDate(diagram.lastModified);
+ // the hook does support undefined, but the function overload is somehow not transferred here
91
+ const formattedDate = useFormattedDate(diagram.lastModified as number);
92
return (
93
<Card
94
className={diagramCardStyles}
0 commit comments