diff --git a/src/components/md-deck/CardLayer.tsx b/src/components/md-deck/CardLayer.tsx index 918216c..2772cfc 100644 --- a/src/components/md-deck/CardLayer.tsx +++ b/src/components/md-deck/CardLayer.tsx @@ -23,7 +23,7 @@ export function CardLayer(props: CardLayerProps) { const showBounds = () => props.store.state.isEditing; function renderLayerContent(content: string) { - const iconPath = resolvePath(props.store.state.cards.sourcePath, props.cardData.iconPath); + const iconPath = resolvePath(props.store.state.cards.sourcePath, props.cardData.iconPath ?? "./assets"); return parseMarkdown(processVariables(content, props.cardData, props.store.state.cards), iconPath) as string; } return (