diff options
author | Nick Coutsos <[email protected]> | 2022-04-10 22:43:10 -0400 |
---|---|---|
committer | Nick Coutsos <[email protected]> | 2022-04-11 00:20:53 -0400 |
commit | d61a71b2882e203d3c2dde9532e404f54b122986 (patch) | |
tree | fe106b35af6913574c34d846addbc68820f127de /application | |
parent | b742ab0620c7a4a30e36113eb49a3384267cd30e (diff) | |
download | keymap-editor-d61a71b2882e203d3c2dde9532e404f54b122986.tar.gz keymap-editor-d61a71b2882e203d3c2dde9532e404f54b122986.zip |
Bugfix: deleting layer when currently viewing topmost layer causes crash
Diffstat (limited to 'application')
-rw-r--r-- | application/components/keymap.vue | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/application/components/keymap.vue b/application/components/keymap.vue index 7bf7736..65cee41 100644 --- a/application/components/keymap.vue +++ b/application/components/keymap.vue @@ -134,6 +134,7 @@ export default { const layers = [...this.keymap.layers]; layers.splice(layerIndex, 1); + this.activeLayer = layers.length - 1 this.$emit("update", { ...this.keymap, layers, layer_names }); }, } |