1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-14 04:34:04 +00:00

Loose JSON parsing. Many UI improvements.

This commit is contained in:
2023-02-19 17:26:32 +01:00
parent 7ac1587c95
commit 78540622ee
25 changed files with 211 additions and 130 deletions

View File

@ -3,6 +3,7 @@
import Modal from './modal.svelte';
import ObjectTree from './objecttree.svelte';
import { onDestroy } from 'svelte';
import { deepClone } from '$lib/objects';
export let data;
@ -11,7 +12,7 @@
let _data;
$: if (data) {
_data = JSON.parse(JSON.stringify(data));
_data = deepClone(data);
for (const key of Object.keys(_data)) {
if (typeof _data[key] === 'undefined') {
delete _data[key];