diff --git a/src/components/Fields/index.tsx b/src/components/Fields/index.tsx index 9ab3723c..56a8879f 100644 --- a/src/components/Fields/index.tsx +++ b/src/components/Fields/index.tsx @@ -31,7 +31,6 @@ export enum FieldType { singleSelect = "SINGLE_SELECT", multiSelect = "MULTI_SELECT", documentSelect = "DOCUMENT_SELECT", - documentsSelect = "DOCUMENTS_SELECT", } export const FIELDS = [ @@ -50,7 +49,6 @@ export const FIELDS = [ { icon: , name: "Single Select", type: FieldType.singleSelect }, { icon: , name: "Multi Select", type: FieldType.multiSelect }, { icon: , name: "Doc Select", type: FieldType.documentSelect }, - { icon: , name: "Docs Select", type: FieldType.documentsSelect }, ]; export const getFieldIcon = (type: FieldType) => { diff --git a/src/components/Table/ColumnEditor/index.tsx b/src/components/Table/ColumnEditor/index.tsx index 2842be36..20c78b9d 100644 --- a/src/components/Table/ColumnEditor/index.tsx +++ b/src/components/Table/ColumnEditor/index.tsx @@ -170,10 +170,7 @@ const ColumnEditor = (props: any) => { value: values.options, }); } - if ( - values.type === FieldType.documentSelect || - values.type === FieldType.documentsSelect - ) { + if (values.type === FieldType.documentSelect) { updatables.push({ field: "collectionPath", value: values.collectionPath, @@ -258,8 +255,7 @@ const ColumnEditor = (props: any) => { options={values.options} /> )} - {(values.type === FieldType.documentSelect || - values.type === FieldType.documentsSelect) && ( + {values.type === FieldType.documentSelect && (