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 committed Dec 16, 2024
1 parent 78e5876 commit 950f847
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 950f847

Please sign in to comment.