Skip to content

Commit

Permalink
Do not filter null measure values in dimension table (#6255)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaHegde authored Dec 13, 2024
1 parent 326ab38 commit 1fc965b
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export function prepareVirtualizedDimTableColumns(
.filter((column) => column !== undefined);

// cast is safe, because we filtered out undefined columns
return (columns as VirtualizedTableColumns[]) ?? [];
return columns ?? [];
}

/**
Expand Down Expand Up @@ -426,10 +426,7 @@ export function prepareDimensionTableRows(
);

const tableRows: DimensionTableRow[] = queryRows
.filter(
(row) =>
row[activeMeasureName] !== undefined && row[activeMeasureName] !== null,
)
.filter((row) => row[activeMeasureName] !== undefined)
.map((row) => {
const measureValue = row[activeMeasureName];

Expand Down

1 comment on commit 1fc965b

@github-actions
Copy link
Contributor

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.