Create view tables inside the core schema (#13309)
Closes https://github.com/twentyhq/core-team-issues/issues/1246 Created, in core schema: - View - ViewField - ViewFilter - ViewSort - ViewGroup - ViewFilterGroup Generated migration file.
This commit is contained in:
@ -95,6 +95,7 @@ export const useSetViewTypeFromLayoutOptionsMenu = () => {
|
||||
}
|
||||
const previouslySelectedKanbanField = availableFieldsForKanban.find(
|
||||
(fieldsForKanban) =>
|
||||
// TODO: replace with viewGroups.fieldMetadataId
|
||||
fieldsForKanban.id === currentView.kanbanFieldMetadataId,
|
||||
);
|
||||
|
||||
@ -103,6 +104,7 @@ export const useSetViewTypeFromLayoutOptionsMenu = () => {
|
||||
: availableFieldsForKanban[0];
|
||||
|
||||
if (!isDefined(previouslySelectedKanbanField)) {
|
||||
// TODO: replace with viewGroups.fieldMetadataId
|
||||
updateCurrentViewParams.kanbanFieldMetadataId = kanbanField.id;
|
||||
}
|
||||
|
||||
|
||||
@ -194,6 +194,7 @@ export const useLoadRecordIndexStates = () => {
|
||||
setRecordIndexViewType(view.type);
|
||||
setRecordIndexOpenRecordIn(view.openRecordIn);
|
||||
setRecordIndexViewKanbanFieldMetadataIdState(
|
||||
// TODO: replace with viewGroups.fieldMetadataId
|
||||
view.kanbanFieldMetadataId,
|
||||
);
|
||||
const kanbanAggregateOperationFieldMetadataType =
|
||||
|
||||
Reference in New Issue
Block a user