Skip to content

Commit

Permalink
fix: don't allow negative growing of the grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Aug 5, 2023
1 parent 8589517 commit b7144a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webui/src/Buttons/ButtonGridPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ export const ButtonsGridPanel = memo(function ButtonsPage({

const doGrow = useCallback(
(direction, amount) => {
if (amount <= 0) return

switch (direction) {
case 'left':
socket.emit('set_userconfig_key', 'gridSize', {
Expand Down

0 comments on commit b7144a0

Please sign in to comment.