Skip to content

Commit 7e1fbc8

Browse files
committed
Use isSortable flag to determine if colBy or rowBy source is sortable
1 parent a0698b9 commit 7e1fbc8

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

plugins/pivot/src/js/src/PivotUtils.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -245,18 +245,12 @@ export function makeColumnFromSource(
245245
source: CorePlusDhType.coreplus.pivot.PivotSource,
246246
index: number
247247
): PivotDisplayColumn {
248-
const {
249-
name,
250-
type,
251-
// TODO: DH-21047
252-
// isSortable,
253-
description,
254-
} = source;
248+
const { name, type, isSortable, description } = source;
255249
return makeColumn({
256250
name,
257251
type,
258252
index,
259-
isSortable: true,
253+
isSortable,
260254
description,
261255
filter: source.filter.bind(source),
262256
sort: source.sort.bind(source),

0 commit comments

Comments
 (0)