Skip to content

Commit

Permalink
Before Pos
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Mar 6, 2024
1 parent cd4a52f commit 9249566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/web/src/stores/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const useMapStore = defineStore('cloudtak', {
const beforePos = this.getLayerPos(layer.before)
if (layer.before && beforePos !== false) {
layer.before = this.layers[beforePos].layers[0].id;
this.layers.splice(layer.before, 0, layer);
this.layers.splice(beforePos, 0, layer);
} else {
this.layers.push(layer);
}
Expand Down

0 comments on commit 9249566

Please sign in to comment.