From 924956606f635cc59a9ce357bc5ee637cf3e7a55 Mon Sep 17 00:00:00 2001 From: ingalls Date: Tue, 5 Mar 2024 19:16:16 -0700 Subject: [PATCH] Before Pos --- api/web/src/stores/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/web/src/stores/map.js b/api/web/src/stores/map.js index d22a4e39b..d5c6830a4 100644 --- a/api/web/src/stores/map.js +++ b/api/web/src/stores/map.js @@ -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); }