mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-30 19:59:35 +02:00
Fix issue where iD could crash upon save if user had edits stored before iD 2.15 (close #6496)
This commit is contained in:
@@ -323,9 +323,11 @@ export function coreHistory(context) {
|
||||
} else {
|
||||
var s = new Set();
|
||||
_stack.slice(1, _index + 1).forEach(function(state) {
|
||||
state.photoOverlaysUsed.forEach(function(photoOverlay) {
|
||||
s.add(photoOverlay);
|
||||
});
|
||||
if (state.photoOverlaysUsed && Array.isArray(state.photoOverlaysUsed)) {
|
||||
state.photoOverlaysUsed.forEach(function(photoOverlay) {
|
||||
s.add(photoOverlay);
|
||||
});
|
||||
}
|
||||
});
|
||||
return Array.from(s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user