Skip to content

Commit

Permalink
Merge pull request #315 from ynput/fix-abort-kanban-with-no-projects
Browse files Browse the repository at this point in the history
GraphQL: return empty connection when no project is present in kanban query
  • Loading branch information
martastain authored Aug 7, 2024
2 parents fcc23b7 + fb9a7cc commit 391071d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ayon_server/graphql/resolvers/kanban.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ async def get_kanban(
elif assignees_any:
validate_name_list(assignees_any)

if not project_data:
return KanbanConnection(edges=[])

# Sub-query conditions

sub_query_conds = []
Expand Down

0 comments on commit 391071d

Please sign in to comment.