Skip to content

Commit

Permalink
Fix conditional logic in SortIcon component
Browse files Browse the repository at this point in the history
  • Loading branch information
MaewenPelletier committed Nov 21, 2023
1 parent b6b2a4d commit 1a27255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1a27255

Please sign in to comment.