This commit is contained in:
Pieter Vander Vennet 2024-10-17 01:23:05 +02:00
parent a8991a6f8e
commit 91f5c8f166

View file

@ -341,7 +341,10 @@ export class OsmPreferences {
async removeAllWithPrefix(prefix: string) { async removeAllWithPrefix(prefix: string) {
const keys = this.seenKeys const keys = this.seenKeys
for (const key in keys) { for (const key of keys) {
if(!key.startsWith(prefix)){
continue
}
await this.deleteKeyDirectly(key) await this.deleteKeyDirectly(key)
} }
} }