Skip to content

Commit

Permalink
Merge pull request #14165 from MaewenPell/fix#14164
Browse files Browse the repository at this point in the history
Fix conditional logic in SortIcon component
  • Loading branch information
cetincakiroglu authored Nov 22, 2023
2 parents 39ff129 + 1a27255 commit 841281a
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

1 comment on commit 841281a

@vercel
Copy link

@vercel vercel bot commented on 841281a Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.