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 {
328328 ) {
329329 const type = collectionView ?. type
330330 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
334334
335335 let filters = [ ]
336336 if ( collectionView . format ?. property_filters ) {
@@ -344,6 +344,10 @@ export class NotionAPI {
344344 } )
345345 }
346346
347+ if ( collectionView ?. query2 ?. filter ?. filters ) {
348+ filters . push ( ...collectionView . query2 . filter . filters )
349+ }
350+
347351 let loader : any = {
348352 type : 'reducer' ,
349353 reducers : {
You can’t perform that action at this time.
0 commit comments