mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
worked on export JSON reference
This commit is contained in:
@@ -48,6 +48,12 @@ const selectedColumnsJsonReducer =
|
||||
};
|
||||
}
|
||||
|
||||
if (currentColumn.type === FieldType.reference) {
|
||||
return {
|
||||
...accumulator,
|
||||
[currentColumn.key]: value ? value.path : "",
|
||||
};
|
||||
}
|
||||
return {
|
||||
...accumulator,
|
||||
[currentColumn.key]: value,
|
||||
|
||||
@@ -29,5 +29,6 @@ export const config: IFieldConfig = {
|
||||
}),
|
||||
SideDrawerField,
|
||||
filter: { operators: filterOperators, valueFormatter: valueFormatter },
|
||||
csvExportFormatter: (value: any) => value?.path,
|
||||
};
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user