We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82cdefc commit a443e91Copy full SHA for a443e91
src/runtime/composables/useDB.js
@@ -121,7 +121,7 @@ class Query {
121
122
let records = data.filter(compile(where))
123
124
- if (search && records.length) {
+ if (!surround && search && records.length) {
125
records = fuzzysort.go(search, records, config).map(res => res.obj)
126
}
127
@@ -147,11 +147,11 @@ class Query {
147
records = items
148
149
150
- if (skip) {
+ if (!surround && skip) {
151
records = records.slice(skip)
152
153
154
- if (limit) {
+ if (!surround && limit) {
155
records = records.slice(0, limit)
156
157
0 commit comments