From 57d1d33f539bb3e05ab63127713b137a16441810 Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 9 Sep 2022 17:09:04 +0200 Subject: [PATCH] fix: variable name --- .../[collection]/document/[document]/_document.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/routes/console/project-[project]/databases/database/[database]/collection/[collection]/document/[document]/_document.svelte b/src/routes/console/project-[project]/databases/database/[database]/collection/[collection]/document/[document]/_document.svelte index d1aace4e3..fce031a53 100644 --- a/src/routes/console/project-[project]/databases/database/[database]/collection/[collection]/document/[document]/_document.svelte +++ b/src/routes/console/project-[project]/databases/database/[database]/collection/[collection]/document/[document]/_document.svelte @@ -10,7 +10,7 @@ import Attribute from './_attribute.svelte'; let currentDoc: string; - let updateBtnDisabled = true; + let disableUpdate = true; onMount(async () => { await doc.load($collection.$id, $page.params.document); @@ -19,9 +19,9 @@ $: if (currentDoc && $doc) { if (currentDoc !== JSON.stringify($doc)) { - updateBtnDisabled = false; + disableUpdate = false; } else { - updateBtnDisabled = true; + disableUpdate = true; } } @@ -36,7 +36,7 @@ ); currentDoc = JSON.stringify($doc); - updateBtnDisabled = true; + disableUpdate = true; addNotification({ message: 'Document was updated!', type: 'success' @@ -117,6 +117,6 @@ - +