Skip to content

Commit ce77dc4

Browse files
committed
fixed decrementing layer bug
1 parent a334f66 commit ce77dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ComponentDisplay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ export default {
437437
z: this.activeComponentData.z,
438438
};
439439
if (e.target.innerText === "+") payload.z++;
440-
if (e.target.innerText === "-" && payload.z > 0) payload.z--;
440+
if (e.target.innerText === "" && payload.z > 0) payload.z--;
441441
this.updateComponentLayer(payload);
442442
},
443443
// if user clicks on display grid, resets active component to ''

0 commit comments

Comments
 (0)