Synchronization between Core Views and Workspace Views (#13461)
Closes https://github.com/twentyhq/core-team-issues/issues/1248 - Create listeners on each CRUD operation for all view related objects and update the core views accordingly Some fields have to be parsed since we changed the data model a little bit when switching to core views.
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import { ViewFilterValue } from 'src/engine/metadata-modules/view/types/view-filter-value.type';
|
||||
|
||||
export const transformViewFilterWorkspaceValueToCoreValue = (
|
||||
value: string,
|
||||
): ViewFilterValue => {
|
||||
try {
|
||||
return JSON.parse(value);
|
||||
} catch {
|
||||
return value;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user