From db1569763ab63f376fcd3041c9ec3e779a02d494 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期四, 02 七月 2020 16:05:17 +0800 Subject: [PATCH] fix --- controllers/task.go | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/controllers/task.go b/controllers/task.go index 51f3a81..17c5855 100644 --- a/controllers/task.go +++ b/controllers/task.go @@ -104,11 +104,13 @@ taskId := tM["taskId"].(string) taskName := tM["taskName"].(string) m[taskId] = taskName - result = append(result, SceneIfDelResult{ - Id: taskId, - Name: taskName, - IsDelete: true, - }) + if taskId != "" { + result = append(result, SceneIfDelResult{ + Id: taskId, + Name: taskName, + IsDelete: true, + }) + } } } } -- Gitblit v1.8.0