mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
fix(mermaid): diagram still displayed on error
This commit is contained in:
@@ -116,6 +116,7 @@ export default class MermaidWidget extends NoteContextAwareWidget {
|
||||
} catch (e: any) {
|
||||
console.warn(e);
|
||||
this.#cleanUpZoom();
|
||||
this.$display.empty();
|
||||
this.$errorMessage.text(e.message);
|
||||
this.$errorContainer.show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user