mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
removed documentsSelect type
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user