Skip to content

Commit

Permalink
fix: fix removing viewers
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYuion committed Dec 1, 2020
1 parent 70275ac commit 7075e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function removeViewer(id: string) {
const view = getViewer(id);
if (!view) return;
const view_el = view.element?.querySelector('.svg-viewer');
if (!view_el || view.element?.contains(view_el)) return;
if (!view_el) return;
view.element!.removeChild(view_el);
del(view);
// Remove listeners for viewer
Expand Down

0 comments on commit 7075e8d

Please sign in to comment.