Mercurial > gemma
changeset 3071:53082e5a198a
client: maps: fixed removing a map, added missing second param for splice
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 17 Apr 2019 10:51:30 +0200 |
parents | a54216a0193d |
children | 0233845cadb7 |
files | client/src/store/map.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/store/map.js Wed Apr 17 10:15:15 2019 +0200 +++ b/client/src/store/map.js Wed Apr 17 10:51:30 2019 +0200 @@ -74,7 +74,7 @@ m => m.getTarget() === map.getTarget() ); if (index !== -1) { - state.openLayersMaps.splice(index); + state.openLayersMaps.splice(index, 1); } }, syncedView: (state, view) => {