From c576e5776e63e9e29e8ff8513f4ea186ea215c8e Mon Sep 17 00:00:00 2001 From: Arman Date: Tue, 11 Apr 2023 10:08:42 +0200 Subject: [PATCH] fix: format check for datetime attribute in edit modal --- .../collection-[collection]/attributes/edit.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/edit.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/edit.svelte index 846e3dd79..934e598ad 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/edit.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/edit.svelte @@ -21,7 +21,7 @@ $: option = options.find((option) => { if (selectedAttribute) { - if ('format' in selectedAttribute) { + if ('format' in selectedAttribute && selectedAttribute.format) { return option?.format === selectedAttribute?.format; } else { return option?.type === selectedAttribute?.type;