fix: card layer assets
This commit is contained in:
parent
8af559fe1c
commit
64ac6c4516
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in New Issue