diff --git a/frontend/src/components/forminput.svelte b/frontend/src/components/forminput.svelte
index a3f7193..9d2498a 100644
--- a/frontend/src/components/forminput.svelte
+++ b/frontend/src/components/forminput.svelte
@@ -70,7 +70,7 @@
{#if objectViewerData}
-
{/if}
diff --git a/frontend/src/organisms/connection/collection/insert.svelte b/frontend/src/organisms/connection/collection/insert.svelte
index 9387c25..f75bcad 100644
--- a/frontend/src/organisms/connection/collection/insert.svelte
+++ b/frontend/src/organisms/connection/collection/insert.svelte
@@ -73,12 +73,7 @@
}
function showJson() {
- if (viewType === 'form') {
- objectViewerData = { ...(newItems[0] || {}) };
- }
- else if (viewType === 'table') {
- objectViewerData = [ ...newItems ];
- }
+ objectViewerData = [ ...newItems ];
}
function addRow(beforeIndex = -1) {
@@ -151,7 +146,6 @@
inputTypes.includes(c.inputType))
.map(c => {
@@ -162,7 +156,9 @@
canRemoveItems={true}
hideChildrenToggles={true}
on:addRow={addRow}
+ on:removeItem={() => deleteRow()}
bind:inputsValid={allValid}
+ bind:items={newItems}
/>
{/if}
@@ -209,7 +205,9 @@
-
+{#if objectViewerData}
+
+{/if}