Roc hai 1 mes
pai
achega
2b743d789b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/data_manage/ai_predict_model/index.go

+ 1 - 1
controllers/data_manage/ai_predict_model/index.go

@@ -860,7 +860,7 @@ func (this *AiPredictModelIndexController) DashboardSave() {
 			br.ErrMsg = fmt.Sprintf("获取标的看板失败, %v", e)
 			return
 		}
-		if item != nil {
+		if item != nil && item.AiPredictModelIndexId > 0 {
 			isUpdate = true
 			dashboardItem = item
 			dashboardItem.DashboardName = req.DashboardName