removed documentsSelect type

This commit is contained in:
shams mosowi
2019-10-01 12:46:21 +10:00
parent 754fbc0a0c
commit d7fce51656
2 changed files with 2 additions and 8 deletions

View File

@@ -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: <FileIcon />, name: "Single Select", type: FieldType.singleSelect },
{ icon: <FileIcon />, name: "Multi Select", type: FieldType.multiSelect },
{ icon: <FileIcon />, name: "Doc Select", type: FieldType.documentSelect },
{ icon: <FileIcon />, name: "Docs Select", type: FieldType.documentsSelect },
];
export const getFieldIcon = (type: FieldType) => {

View File

@@ -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 && (
<DocInput
setValue={setValue}
collectionPath={values.collectionPath}