mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
client: Fix console error when exporting SVG after multiple note types
This commit is contained in:
parent
ace237989c
commit
2a6870d73b
@ -134,7 +134,7 @@ export default class MermaidWidget extends NoteContextAwareWidget {
|
||||
}
|
||||
|
||||
async exportSvgEvent({ntxId}) {
|
||||
if (!this.isNoteContext(ntxId)) {
|
||||
if (!this.isNoteContext(ntxId) || this.note.type !== "mermaid") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -110,7 +110,7 @@ export default class MindMapWidget extends TypeWidget {
|
||||
}
|
||||
|
||||
async exportSvgEvent({ntxId}) {
|
||||
if (!this.isNoteContext(ntxId)) {
|
||||
if (!this.isNoteContext(ntxId) || this.note.type !== "mindMap") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user