From 64edeae0672bdf7eb87121f9840678fd0dcff26c Mon Sep 17 00:00:00 2001 From: Pierre-Narcisi Date: Tue, 10 Dec 2024 15:10:58 +0100 Subject: [PATCH] Fix(frontend, import) statistics display --- .../imports/components/import_list/import-list.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/modules/imports/components/import_list/import-list.component.ts b/frontend/src/app/modules/imports/components/import_list/import-list.component.ts index 5553ecefe8..2dfe14f1d2 100644 --- a/frontend/src/app/modules/imports/components/import_list/import-list.component.ts +++ b/frontend/src/app/modules/imports/components/import_list/import-list.component.ts @@ -227,7 +227,9 @@ export class ImportListComponent implements OnInit { hasStatistics(row) { const statistics = this._getStatistics(row); - return statistics && Object.keys(statistics).length > 1; + return Object.keys(statistics).some((key) => { + return statistics[key]; + }); } /**