diff --git a/blocks/query/edit.tsx b/blocks/query/edit.tsx index 76cc7974..8334725c 100644 --- a/blocks/query/edit.tsx +++ b/blocks/query/edit.tsx @@ -13,7 +13,12 @@ import { TextControl, } from '@wordpress/components'; import { useSelect } from '@wordpress/data'; -import { createInterpolateElement, useEffect, useState } from '@wordpress/element'; +import { + Fragment, + createInterpolateElement, + useEffect, + useState, +} from '@wordpress/element'; import { __, sprintf } from '@wordpress/i18n'; import { addQueryArgs } from '@wordpress/url'; @@ -303,10 +308,13 @@ export default function Edit({ className="manual-posts" > {manualPosts.map((_post, index) => ( - {index + 1} {Object.keys(availableTaxonomies).length > 0 ? ( allowedTaxonomies.map((taxonomy) => ( - <> + { /* @ts-ignore */ } ) : null}
- +
)) ) : null} {taxCount > 1 ? (