commit f1182068882f61aff7582a69fdc1f857ad2eb00d
parent 28e6c2a23d63e46a9af8b6695f94aa57469570fa
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Tue, 22 Oct 2024 08:47:25 -0700
Update mapIDs sanity check
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/files/floorplans/floorplan/backend.js b/files/floorplans/floorplan/backend.js
@@ -1023,8 +1023,8 @@ export class FloorplanBackend {
}
for (let sid in this.localIDs) {
let lid = this.localIDs[sid]
- if (this.serverIDs[sid] != null || this.serverIDs[lid] !== sid) {
- console.error("Corrupt ID map", structuredClone({ bsid: sid, blid: lid, server: this.serverIDs, local: this.localIDs }))
+ if (lid == null || this.serverIDs[lid] !== sid) {
+ console.error("Corrupt ID map x", structuredClone({ bsid: sid, blid: lid, server: this.serverIDs, local: this.localIDs }))
throw new Error("ID map is corrupted")
}
}