From 52b5d755dc5b98c1c0c090b8a7c5a82f53a3cdd4 Mon Sep 17 00:00:00 2001 From: Sidney Alcantara Date: Tue, 2 Aug 2022 23:43:58 +0200 Subject: [PATCH] fix create table showing empty dropdown for collections --- src/components/TableSettingsDialog/TableSettingsDialog.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/TableSettingsDialog/TableSettingsDialog.tsx b/src/components/TableSettingsDialog/TableSettingsDialog.tsx index 7d48121c..dc979a80 100644 --- a/src/components/TableSettingsDialog/TableSettingsDialog.tsx +++ b/src/components/TableSettingsDialog/TableSettingsDialog.tsx @@ -232,7 +232,8 @@ export default function TableSettingsDialog() { })), ["section", "label"] ), - Array.isArray(collections) && collections.length !== 0 + Array.isArray(collections) && + collections.filter((x) => x !== CONFIG).length > 0 ? collections.filter((x) => x !== CONFIG) : null );