Skip to content

Commit

Permalink
fix grid erased on node removal
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergodart committed Nov 25, 2024
1 parent 9e7c10c commit 46a167e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (m mainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.mute = !m.mute
return m, save(m)
case key.Matches(msg, m.keymap.RemoveNode):
if m.mode != BANK {
if m.mode == BANK {
m.bank.ClearGrid(m.selectedGrid)
return m.loadGridFromBank(), tea.WindowSize()
}
Expand Down

0 comments on commit 46a167e

Please sign in to comment.