Skip to content

Commit

Permalink
fix: query prop access in entity-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Jul 2, 2024
1 parent c89e83a commit a87f8fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/client-vue/src/core/entity-manager/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,13 @@ export function createEntityManager<
return;
}

if (ctx.props.query || ctx.props.queryFilters) {
if (
ctx.props.query ||
ctx.props.queryFields ||
ctx.props.queryFilters
) {
query = {
...(ctx.props.query ? { filters: ctx.props.query } : {}),
...(ctx.props.query ? ctx.props.query : {}),
...(ctx.props.queryFields ? { fields: ctx.props.queryFields } : {}),
...(ctx.props.queryFilters ? { filters: ctx.props.queryFilters } : {}),
} as any;
Expand Down

0 comments on commit a87f8fe

Please sign in to comment.