Skip to content

Commit

Permalink
fix: panic delete when metadata is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
felangga committed Jul 16, 2024
1 parent c16afa5 commit 41744e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/ui/show_metadata_modal.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ func (u *UI) ShowMetadataModal() {
})

form.AddButton("Delete Metadata", func() {
if u.GRPC.Conn.Metadata == nil {
return
}

row, col := table.GetSelection()
cell := table.GetCell(row, col)
u.deleteMetadataModal(wnd, table, cell)
Expand Down

0 comments on commit 41744e6

Please sign in to comment.