File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ export default function makeFindMixin(options) {
156
156
}
157
157
} ,
158
158
[ FIND_ACTION ] ( params ) {
159
+ const serviceName = this [ SERVICE_NAME ]
159
160
const paramsToUse = getParams ( {
160
161
providedParams : params ,
161
162
params : this [ PARAMS ] ,
@@ -168,17 +169,19 @@ export default function makeFindMixin(options) {
168
169
: this [ QUERY_WHEN ]
169
170
170
171
if ( shouldExecuteQuery ) {
171
- this [ IS_FIND_PENDING ] = true
172
-
173
172
if ( paramsToUse ) {
173
+ // Set the qid.
174
174
paramsToUse . query = paramsToUse . query || { }
175
175
paramsToUse . qid = paramsToUse . qid || this [ QID ]
176
176
this [ QID ] = paramsToUse . qid
177
177
178
- const serviceName = this [ SERVICE_NAME ]
178
+ this [ IS_FIND_PENDING ] = true
179
+ this [ HAVE_ITEMS_BEEN_REQUESTED_ONCE ] = true
180
+
179
181
return this . $store
180
182
. dispatch ( `${ serviceName } /find` , paramsToUse )
181
183
. then ( response => {
184
+ this [ HAVE_ITEMS_LOADED_ONCE ] = true
182
185
const queryInfo = getQueryInfo ( paramsToUse , response )
183
186
// @ts -ignore
184
187
queryInfo . response = response
You can’t perform that action at this time.
0 commit comments