From 1f2ab841b194705fe788f52aece61d77ba64b6d7 Mon Sep 17 00:00:00 2001 From: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> Date: Sat, 30 Jul 2022 15:30:26 +0600 Subject: [PATCH] fix loading empy tracker kanban (#2244) Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> --- .gitignore | 3 +++ .../tracker-resources/src/components/issues/KanbanView.svelte | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 18efe70935..71af793052 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,9 @@ yarn-error.log* *.seed *.pid.lock +# VS Code settings +.vscode/settings.json + # Directory for instrumented libs generated by jscoverage/JSCover lib-cov diff --git a/plugins/tracker-resources/src/components/issues/KanbanView.svelte b/plugins/tracker-resources/src/components/issues/KanbanView.svelte index 9cc9dd5dbc..197eaf6f15 100644 --- a/plugins/tracker-resources/src/components/issues/KanbanView.svelte +++ b/plugins/tracker-resources/src/components/issues/KanbanView.svelte @@ -146,7 +146,7 @@ statusStates: TypeState[], priorityStates: TypeState[] ) { - if (!showEmptyGroups) return states + if (!showEmptyGroups && states.length > 0) return states if (groupBy === IssuesGrouping.Status) return statusStates if (groupBy === IssuesGrouping.Priority) return priorityStates return []