fix loading empy tracker kanban (#2244)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov 2022-07-30 15:30:26 +06:00 committed by GitHub
parent b2223035a9
commit 1f2ab841b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -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

View File

@ -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 []