Skip to content

Commit 256e80b

Browse files
committed
Fix sorting value of 0 now not working ... duh
1 parent 277af6b commit 256e80b

File tree

1 file changed

+1
-1
lines changed
  • BlueMapCommon/webapp/src/js/map

1 file changed

+1
-1
lines changed

BlueMapCommon/webapp/src/js/map/Map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class Map {
138138
.then(worldSettings => {
139139
this.data.name = worldSettings.name ? worldSettings.name : this.data.name;
140140

141-
this.data.sorting = worldSettings.sorting ? worldSettings.sorting : this.data.sorting;
141+
this.data.sorting = Number.isInteger(worldSettings.sorting) ? worldSettings.sorting : this.data.sorting;
142142

143143
this.data.startPos = {...this.data.startPos, ...vecArrToObj(worldSettings.startPos, true)};
144144

0 commit comments

Comments
 (0)