From 24d83926e275c248ded910d64dff502ba37942dd Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Sun, 17 May 2020 17:41:44 +0100 Subject: [PATCH] Fix white Osmose icons after changes upload Prevent those elements of the Osmose service cache from being purged on reset. Fixes #7609 --- modules/services/osmose.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/services/osmose.js b/modules/services/osmose.js index ad064043f..13e9c5a39 100644 --- a/modules/services/osmose.js +++ b/modules/services/osmose.js @@ -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 }; },