mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
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:
@@ -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
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user