Browse Source

fix(nc-gui): group rows update issue

pull/7500/head
Ramesh Mane 10 months ago
parent
commit
70d2d43b20
  1. 6
      packages/nc-gui/components/smartsheet/grid/GroupBy.vue

6
packages/nc-gui/components/smartsheet/grid/GroupBy.vue

@ -72,7 +72,7 @@ const findAndLoadSubGroup = (key: any) => {
if (grp.nested) {
if (!grp.children?.length) props.loadGroups({}, grp)
} else {
if (!grp.rows?.length) props.loadGroupData(grp)
if (!grp.rows?.length || grp.count !== grp.rows?.length) props.loadGroupData(grp)
}
}
}
@ -258,7 +258,9 @@ const shouldRenderCell = (column) =>
<div class="flex items-center">
<div class="flex flex-col">
<div class="flex gap-2">
<div class="text-xs nc-group-column-title">{{ grp.column.title }}</div>
<div class="text-xs nc-group-column-title">
{{ grp.column.title }}
</div>
<div class="text-xs text-gray-400 nc-group-row-count">({{ $t('datatype.Count') }}: {{ grp.count }})</div>
</div>
<div class="flex mt-1">

Loading…
Cancel
Save