* fix kanban UI, feedback by @sunguangming.

This commit is contained in:
Hao Sun
2021-09-07 21:23:18 +08:00
parent 2df7e608a0
commit 6479af20fa
4 changed files with 14 additions and 10 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ function processKanbanData(key, programsData)
items.doingProject.push(projectItem);
var execution = project.execution;
if(!execution) return;
if(!execution || !execution.id) return;
var executionItem = $.extend({}, execution, {id: 'execution-' + execution.id, _id: execution.id});
items.doingExecution.push(executionItem);
});
@@ -81,7 +81,7 @@ function processKanbanData(key, programsData)
{
$.each(releases, function(releaseID, release)
{
if(!release) return;
if(!release || !release.id) return;
var releaseItem = $.extend({}, release, {id: 'release-' + releaseID, _id: releaseID});
items.normalRelease.push(releaseItem);
});