|
|
@ -157,9 +157,10 @@ const [useProvideKanbanViewStore, useKanbanViewStore] = useInjectionState( |
|
|
|
: await $api.dbView.kanbanRead(viewMeta.value.id) |
|
|
|
: await $api.dbView.kanbanRead(viewMeta.value.id) |
|
|
|
|
|
|
|
|
|
|
|
// set groupingField
|
|
|
|
// set groupingField
|
|
|
|
// avoid getting from meta.value.columns
|
|
|
|
groupingFieldColumn.value = !isPublic.value |
|
|
|
// it would be undefiend as grouping field can be unselected before passing to share view
|
|
|
|
? (meta.value.columns as ColumnType[]).filter((f) => f.id === kanbanMetaData.value.fk_grp_col_id)[0] || {} |
|
|
|
groupingFieldColumn.value = (await $api.dbTableColumn.get(kanbanMetaData.value.fk_grp_col_id!))! as ColumnType |
|
|
|
: ((typeof sharedView.value?.meta === 'string' ? JSON.parse(sharedView.value?.meta) : sharedView.value?.meta) |
|
|
|
|
|
|
|
.groupingFieldColumn! as ColumnType) |
|
|
|
|
|
|
|
|
|
|
|
groupingField.value = groupingFieldColumn.value.title! |
|
|
|
groupingField.value = groupingFieldColumn.value.title! |
|
|
|
|
|
|
|
|
|
|
|