Skip to content

Commit

Permalink
Merge pull request #289 from farfromrefug/patch-6
Browse files Browse the repository at this point in the history
fix: prevent error on `showModal` without target
  • Loading branch information
halfnelson authored May 29, 2022
2 parents 30bf2ca + 756ff88 commit 6316ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function resolveTarget(viewSpec: ViewSpec): View {
if (viewSpec instanceof View) {
return viewSpec;
}
return viewSpec.nativeView;
return viewSpec?.nativeView;
}

interface ComponentInstanceInfo { element: NativeViewElementNode<View>, pageInstance: SvelteComponent }
Expand Down

0 comments on commit 6316ea7

Please sign in to comment.