File tree Expand file tree Collapse file tree
refine-nextjs/plugins/headless-example/src/app/blog-posts
refine-vite/plugins/headless-example/src/pages/blog-posts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,9 +166,9 @@ export default function BlogPostList() {
166166< % _ if ( ! isGraphQL & & answers [ "data-provider "] !== "data-provider-appwrite ") { _ % >
167167 const { result : { data : categories } } = useMany({
168168 resource : "categories" ,
169- ids : tableData ?. data ?. map ( ( item ) => item ?.< % - blogPostCategoryFieldName % > ?. id ) . filter ( Boolean ) ?? [ ] ,
169+ ids : tableData ?. map ( ( item ) => item ?.< % - blogPostCategoryFieldName % > ?. id ) . filter ( Boolean ) ?? [ ] ,
170170 queryOptions : {
171- enabled : ! ! tableData ?. data ,
171+ enabled : ! ! tableData ,
172172 } ,
173173 } );
174174
Original file line number Diff line number Diff line change @@ -166,9 +166,9 @@ export const BlogPostList = () => {
166166< % _ if ( ! isGraphQL ) { _ % >
167167 const { result : { data : categories } } = useMany({
168168 resource : "categories" ,
169- ids : tableData ?. data ?. map ( ( item ) => item ?.< % - blogPostCategoryFieldName % > ?. id ) . filter ( Boolean ) ?? [ ] ,
169+ ids : tableData ?. map ( ( item ) => item ?.< % - blogPostCategoryFieldName % > ?. id ) . filter ( Boolean ) ?? [ ] ,
170170 queryOptions : {
171- enabled : ! ! tableData ?. data ,
171+ enabled : ! ! tableData ,
172172 } ,
173173 } );
174174
You can’t perform that action at this time.
0 commit comments