diff --git a/docs/hra-node-dist-vis.wc.js b/docs/hra-node-dist-vis.wc.js index 891ba8f..583146a 100644 --- a/docs/hra-node-dist-vis.wc.js +++ b/docs/hra-node-dist-vis.wc.js @@ -62341,11 +62341,17 @@ void main(void) { target: [0.5, 0.5] }; } - function parseSelectionValue(value) { - if (!value) { + function tryParseJson(value) { + try { + if (typeof value === "string") { + return JSON.parse(value); + } + } catch { + } + if (value === "" || value === void 0 || value === null) { return void 0; } - return typeof value === "string" ? JSON.parse(value) : value; + return value; } var template = document.createElement("template"); template.innerHTML = `