Skip to content

Commit cefd02e

Browse files
authored
fix(FeathersVuexFind.ts): Fixes the use of the lodash "get" method
Should fix #364 and #423 but it needs testing.
1 parent c7325e3 commit cefd02e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FeathersVuexFind.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default {
6767
},
6868
queryInfo() {
6969
if (this.pagination == null || this.queryId == null) return {}
70-
return _get(this.pagination, `[${this.queryId}]`) || {}
70+
return _get(this.pagination, this.queryId, {})
7171
},
7272
pageInfo() {
7373
if (
@@ -76,7 +76,7 @@ export default {
7676
this.pageId == null
7777
)
7878
return {}
79-
return _get(this.pagination, `[${this.queryId}][${this.pageId}]`) || {}
79+
return _get(this.pagination, [this.queryId, this.pageId], {})
8080
},
8181
scope() {
8282
const { items, isFindPending, pagination, queryInfo, pageInfo } = this

0 commit comments

Comments
 (0)