fixed jsonl problems, support jsonl without header

This commit is contained in:
Jan Prochazka
2022-02-13 22:05:41 +01:00
parent b8584db48f
commit 8b929f40d2
6 changed files with 50 additions and 13 deletions

View File

@@ -16,7 +16,7 @@
const config = writable(createGridConfig());
const cache = writable(createGridCache());
$: display = new JslGridDisplay(jslid, $info, $config, config.update, $cache, cache.update, loadedRows);
$: display = new JslGridDisplay(jslid, $info, $config, config.update, $cache, cache.update, loadedRows, $info?.__isDynamicStructure);
</script>
{#key jslid}

View File

@@ -30,6 +30,7 @@
category: 'JSON Lines editor',
name: 'Preview',
icon: 'icon preview',
keyText: 'F5',
testEnabled: () => getCurrentEditor() != null,
onClick: () => getCurrentEditor().preview(),
});
@@ -99,6 +100,7 @@
title: 'Preview #',
icon: 'img archive',
tabComponent: 'ArchiveFileTab',
forceNewTab: true,
props: {
jslid,
},