Skip to content

Commit 12ebeb9

Browse files
Addison-Stavlonoahtallen
authored andcommitted
update query loop destructuring again
1 parent d5cb772 commit 12ebeb9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • packages/block-library/src/query-loop

packages/block-library/src/query-loop/edit.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ import { useQueryContext } from '../query';
1818
const TEMPLATE = [ [ 'core/post-title' ], [ 'core/post-content' ] ];
1919
export default function QueryLoopEdit( {
2020
clientId,
21-
context: { query: _query = {}, queryContext },
21+
context: { query: { perPage, offset, categoryIds } = {}, queryContext },
2222
} ) {
23-
const { perPage, offset, categoryIds } = _query;
2423
const [ { page } ] = useQueryContext() || queryContext || [ {} ];
2524
const [ activeBlockContext, setActiveBlockContext ] = useState();
2625

0 commit comments

Comments
 (0)