Skip to content

Commit

Permalink
Do not filter null measure values in dimension table
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaHegde committed Dec 11, 2024
1 parent 349c759 commit 6e0f651
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

0 comments on commit 6e0f651

Please sign in to comment.