File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/notion-client/src Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -328,9 +328,9 @@ export class NotionAPI {
328
328
) {
329
329
const type = collectionView ?. type
330
330
const isBoardType = type === 'board'
331
- const groupBy =
332
- collectionView ?. format ?. board_columns_by ||
333
- collectionView ?. format ?. collection_group_by
331
+ const groupBy = isBoardType
332
+ ? collectionView ?. format ?. board_columns_by
333
+ : collectionView ?. format ?. collection_group_by
334
334
335
335
let filters = [ ]
336
336
if ( collectionView . format ?. property_filters ) {
@@ -344,6 +344,10 @@ export class NotionAPI {
344
344
} )
345
345
}
346
346
347
+ if ( collectionView ?. query2 ?. filter ?. filters ) {
348
+ filters . push ( ...collectionView . query2 . filter . filters )
349
+ }
350
+
347
351
let loader : any = {
348
352
type : 'reducer' ,
349
353
reducers : {
You can’t perform that action at this time.
0 commit comments