Skip to content

Commit

Permalink
fix(core): fix reactive query #1494
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed May 24, 2021
1 parent b1a83d2 commit a0ca5b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/src/models/Query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ export class Query {
if (!this.pattern.isMatchPattern) {
const identifier = this.pattern.toString()
const index = this.form.indexes.get(identifier)
if (this.form.fields[identifier]) {
const absoluteField = this.form.fields[identifier]
const indexField = this.form.fields[index]
if (absoluteField) {
this.addresses = [identifier]
} else if (this.form.fields[index]) {
} else if (indexField) {
this.addresses = [index]
}
} else {
Expand Down

0 comments on commit a0ca5b2

Please sign in to comment.