Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
janproch committed Jun 10, 2021
1 parent afb27ec commit 92ead26
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/svelte+3.35.0.patch
Expand Up @@ -11,3 +11,16 @@ index ee20a17..7b6fff8 100644
}
function destroy_each(iterations, detaching) {
for (let i = 0; i < iterations.length; i += 1) {
diff --git a/node_modules/svelte/internal/index.mjs b/node_modules/svelte/internal/index.mjs
index 4146e56..f5f00c5 100644
--- a/node_modules/svelte/internal/index.mjs
+++ b/node_modules/svelte/internal/index.mjs
@@ -196,7 +196,7 @@ function insert(target, node, anchor) {
target.insertBefore(node, anchor || null);
}
function detach(node) {
- node.parentNode.removeChild(node);
+ if (node.parentNode) node.parentNode.removeChild(node);
}
function destroy_each(iterations, detaching) {
for (let i = 0; i < iterations.length; i += 1) {

0 comments on commit 92ead26

Please sign in to comment.