1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 14:49:09 +00:00

fix: metadata modify group cell value when column is used for group (#6464)

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-08-01 20:48:19 +08:00
committed by GitHub
parent 53c85d9366
commit 437ee7e563

View File

@@ -108,11 +108,11 @@ class DataProcessor {
}
static updateDataWithModifyRecords(table, relatedColumnKeyMap, rowIds, { collaborators }) {
const { available_columns, groupbys, row_ids } = table.view;
const { available_columns, groupbys, rows } = table.view;
const _isGroupView = isGroupView({ groupbys }, available_columns);
const isRegroup = _isGroupView && this.hasRelatedGroupby(groupbys, relatedColumnKeyMap);
if (isRegroup) {
table.view.groups = this.getGroupedRows(table, row_ids, groupbys, { collaborators });
table.view.groups = this.getGroupedRows(table, rows, groupbys, { collaborators });
}
// todo update sort and filter and ui change
}