diff --git a/components/Home.go b/components/Home.go index c279a3f..ca8c80e 100644 --- a/components/Home.go +++ b/components/Home.go @@ -273,7 +273,7 @@ func (home *Home) homeInputCapture(event *tcell.EventKey) *tcell.EventKey { App.Stop() } } else if command == commands.Save { - if (home.ListOfDbChanges != nil && len(home.ListOfDbChanges) > 0) || (home.ListOfDbInserts != nil && len(home.ListOfDbInserts) > 0) && !table.GetIsEditing() { + if ((len(home.ListOfDbChanges) > 0) || len(home.ListOfDbInserts) > 0) && !table.GetIsEditing() { confirmationModal := NewConfirmationModal("") confirmationModal.SetDoneFunc(func(_ int, buttonLabel string) {