We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27aec21 commit a170d40Copy full SHA for a170d40
apps/web/src/common/modules/widgets/_widgets/table/Table.vue
@@ -258,11 +258,8 @@ const refinedData = computed<WidgetLoadResponse|null>(() => {
258
if (widgetOptionsState.totalInfo?.toggleValue) {
259
const totalRowItem: TableDataItem = {
260
[widgetOptionsState.groupByInfo?.data?.[0] ?? '']: 'Total',
261
+ ...(totalData?.results?.length ? totalData?.results[0] : {}),
262
};
- [...(totalData?.results ?? [])].forEach((d) => {
263
- const fieldKey = Object.keys(d)[0];
264
- totalRowItem[fieldKey] = d[fieldKey];
265
- });
266
refinedResults = [...refinedResults, totalRowItem];
267
}
268
0 commit comments