fix create table showing empty dropdown for collections

This commit is contained in:
Sidney Alcantara
2022-08-02 23:43:58 +02:00
parent 7176c9dcc4
commit 52b5d755dc

View File

@@ -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
);