We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06d6b2d commit 26c6d95Copy full SHA for 26c6d95
packages/notion-client/src/notion-api.ts
@@ -328,9 +328,9 @@ export class NotionAPI {
328
) {
329
const type = collectionView?.type
330
const isBoardType = type === 'board'
331
- const groupBy =
332
- collectionView?.format?.board_columns_by ||
333
- collectionView?.format?.collection_group_by
+ const groupBy = isBoardType
+ ? collectionView?.format?.board_columns_by
+ : collectionView?.format?.collection_group_by
334
335
let filters = []
336
if (collectionView.format?.property_filters) {
0 commit comments