From 8563aaf50dfbe0f003f538914e4a6c1f631f1db9 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 27 Feb 2021 01:12:24 +0300 Subject: [PATCH] v1.5.75 - correct fix --- modules/save-and-load.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/save-and-load.js b/modules/save-and-load.js index cd1ea032..f93c2846 100644 --- a/modules/save-and-load.js +++ b/modules/save-and-load.js @@ -779,9 +779,9 @@ function parseLoadedData(data) { } }() - const notHidden = selection => selection?.style("display") !== "none"; - const hasChildren = selection => selection?.node()?.hasChildNodes(); - const hasChild = (selection, selector) => selection?.node()?.querySelector(selector); + const notHidden = selection => selection.node() && selection.style("display") !== "none"; + const hasChildren = selection => selection.node()?.hasChildNodes(); + const hasChild = (selection, selector) => selection.node()?.querySelector(selector); const turnOn = el => document.getElementById(el).classList.remove("buttonoff"); void function restoreLayersState() {