fix(fluxWizard): clone cached values to avoid cache polution
parent
72bea3b854
commit
4671a874bf
|
@ -79,11 +79,10 @@ class QueryBuilderFetcher {
|
||||||
|
|
||||||
this.findKeysQueries[tagIndex] = pendingResult
|
this.findKeysQueries[tagIndex] = pendingResult
|
||||||
|
|
||||||
pendingResult.promise
|
pendingResult.promise = pendingResult.promise.then(result => {
|
||||||
.then(result => {
|
this.findKeysCache[cacheKey] = [...result]
|
||||||
this.findKeysCache[cacheKey] = result
|
return result
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
|
||||||
|
|
||||||
return pendingResult.promise
|
return pendingResult.promise
|
||||||
}
|
}
|
||||||
|
@ -121,11 +120,10 @@ class QueryBuilderFetcher {
|
||||||
|
|
||||||
this.findValuesQueries[tagIndex] = pendingResult
|
this.findValuesQueries[tagIndex] = pendingResult
|
||||||
|
|
||||||
pendingResult.promise
|
pendingResult.promise = pendingResult.promise.then(result => {
|
||||||
.then(result => {
|
this.findValuesCache[cacheKey] = [...result]
|
||||||
this.findValuesCache[cacheKey] = result
|
return result
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
|
||||||
|
|
||||||
return pendingResult.promise
|
return pendingResult.promise
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue