From 256e80bb62d59fb415cf397e0a07fe67eace53d0 Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Wed, 8 Feb 2023 17:43:12 +0100 Subject: [PATCH] Fix sorting value of 0 now not working ... duh --- BlueMapCommon/webapp/src/js/map/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BlueMapCommon/webapp/src/js/map/Map.js b/BlueMapCommon/webapp/src/js/map/Map.js index 947281dc..b42299ad 100644 --- a/BlueMapCommon/webapp/src/js/map/Map.js +++ b/BlueMapCommon/webapp/src/js/map/Map.js @@ -138,7 +138,7 @@ export class Map { .then(worldSettings => { this.data.name = worldSettings.name ? worldSettings.name : this.data.name; - this.data.sorting = worldSettings.sorting ? worldSettings.sorting : this.data.sorting; + this.data.sorting = Number.isInteger(worldSettings.sorting) ? worldSettings.sorting : this.data.sorting; this.data.startPos = {...this.data.startPos, ...vecArrToObj(worldSettings.startPos, true)};