Fix white Osmose icons after changes upload

Prevent those elements of the Osmose service cache from being purged on
reset.

Fixes #7609
This commit is contained in:
SilentSpike
2020-05-17 17:41:44 +01:00
parent 61ef843a18
commit 24d83926e2

View File

@@ -83,8 +83,13 @@ export default {
},
reset() {
let _strings = {};
let _colors = {};
if (_cache) {
Object.values(_cache.inflightTile).forEach(abortRequest);
// Strings and colors are static and should not be re-populated
_strings = _cache.strings;
_colors = _cache.colors;
}
_cache = {
data: {},
@@ -93,8 +98,8 @@ export default {
inflightPost: {},
closed: {},
rtree: new RBush(),
strings: {},
colors: {}
strings: _strings,
colors: _colors
};
},