Skip to content

Commit

Permalink
try fix: return correct result
Browse files Browse the repository at this point in the history
  • Loading branch information
Panayot Ivanov committed Aug 24, 2024
1 parent 3fb36de commit 700ad12
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class {{Name}} extends ObservableQueryFor<{{Model}}> {
{{else}}
static use(args?: {{Name}}Arguments): [QueryResultWithState<{{Model}}>] {
const [result] = useObservableQuery<{{Model}}, {{Name}}, {{Name}}Arguments>({{Name}}, args);
return result;
return [result];
}
{{/if}}
{{else}}
Expand All @@ -133,7 +133,7 @@ export class {{Name}} extends ObservableQueryFor<{{Model}}> {
{{else}}
static use(): [QueryResultWithState<{{Model}}>] {
const [result] = useObservableQuery<{{Model}}, {{Name}}>({{Name}});
return result;
return [result];
}
{{/if}}
{{/if}}
Expand Down

0 comments on commit 700ad12

Please sign in to comment.