From 928ff8c0bf5056002b8e21e923a29474d8dae279 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 1 Oct 2020 11:33:40 +0100 Subject: [PATCH] Remove console.log statement --- .../backend/DataTable/popovers/CreateEditRecord.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/popovers/CreateEditRecord.svelte b/packages/builder/src/components/backend/DataTable/popovers/CreateEditRecord.svelte index 0a1282de60..dda74a6ab3 100644 --- a/packages/builder/src/components/backend/DataTable/popovers/CreateEditRecord.svelte +++ b/packages/builder/src/components/backend/DataTable/popovers/CreateEditRecord.svelte @@ -13,9 +13,10 @@ export let onClosed let errors = [] - $: model = record.modelId ? $backendUiStore.models.find(model => model._id === record?.modelId) : $backendUiStore.selectedModel + $: model = record.modelId + ? $backendUiStore.models.find(model => model._id === record?.modelId) + : $backendUiStore.selectedModel $: modelSchema = Object.entries(model?.schema ?? {}) - $: console.log(modelSchema) async function saveRecord() { const recordResponse = await api.saveRecord(