From 1a27255a3baca553e383b3ec73c06055e2ddcb63 Mon Sep 17 00:00:00 2001 From: "m.pelletier" Date: Tue, 21 Nov 2023 12:46:18 +0100 Subject: [PATCH] Fix conditional logic in SortIcon component --- src/app/components/table/table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index 3d28f6573fe..39ca2d2674e 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -3450,7 +3450,7 @@ export class SortIcon implements OnInit, OnDestroy { let multiSortMeta = this.dt._multiSortMeta; let index = -1; - if (multiSortMeta && this.dt.sortMode === 'multiple' && (this.dt.showInitialSortBadge || multiSortMeta.length > 1)) { + if (multiSortMeta && this.dt.sortMode === 'multiple' && (this.dt.showInitialSortBadge && multiSortMeta.length > 1)) { for (let i = 0; i < multiSortMeta.length; i++) { let meta = multiSortMeta[i]; if (meta.field === this.field || meta.field === this.field) {