worked on export JSON reference

This commit is contained in:
Anish Roy
2023-03-14 12:23:53 +05:30
parent 7767505130
commit a648e33355
2 changed files with 7 additions and 0 deletions

View File

@@ -48,6 +48,12 @@ const selectedColumnsJsonReducer =
};
}
if (currentColumn.type === FieldType.reference) {
return {
...accumulator,
[currentColumn.key]: value ? value.path : "",
};
}
return {
...accumulator,
[currentColumn.key]: value,

View File

@@ -29,5 +29,6 @@ export const config: IFieldConfig = {
}),
SideDrawerField,
filter: { operators: filterOperators, valueFormatter: valueFormatter },
csvExportFormatter: (value: any) => value?.path,
};
export default config;