Skip to content

Commit cf354ba

Browse files
committed
[null] Fix queries null aggregates
1 parent b97c682 commit cf354ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/@types/queries/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type ResultTable = {[rowId: Id]: ResultRow};
1515
export type ResultRow = {[cellId: Id]: ResultCell};
1616

1717
/// ResultCell
18-
export type ResultCell = string | number | boolean;
18+
export type ResultCell = string | number | boolean | null;
1919

2020
/// ResultCellOrUndefined
2121
export type ResultCellOrUndefined = ResultCell | undefined;

src/queries/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export const createQueries = getCreateFunction((store: Store): Queries => {
365365
);
366366
groupRow[groupedCellId] = (
367367
isUndefined(getCellOrValueType(aggregateValue))
368-
? null
368+
? undefined
369369
: aggregateValue
370370
) as Cell;
371371
},

0 commit comments

Comments
 (0)