diff --git a/src/Logic/Osm/OsmPreferences.ts b/src/Logic/Osm/OsmPreferences.ts index f53acbf203..b444cf469f 100644 --- a/src/Logic/Osm/OsmPreferences.ts +++ b/src/Logic/Osm/OsmPreferences.ts @@ -341,7 +341,10 @@ export class OsmPreferences { async removeAllWithPrefix(prefix: string) { const keys = this.seenKeys - for (const key in keys) { + for (const key of keys) { + if(!key.startsWith(prefix)){ + continue + } await this.deleteKeyDirectly(key) } }