Stopped creating Project and Task with blank name

This commit is contained in:
Anis Ahmad
2020-06-06 12:57:29 +06:00
parent 032a53d1c3
commit 62d04b2963
11 changed files with 31 additions and 14 deletions

View File

@@ -25,8 +25,8 @@ func prepareProjectDetail() {
func deleteCurrentProject() {
if currentProject != nil && projectRepo.Delete(currentProject) == nil {
for i, _ := range tasks {
taskRepo.Delete(&tasks[i])
for i := range tasks {
_ = taskRepo.Delete(&tasks[i])
}
showMessage("Removed Project: " + currentProject.Title)