From 85f3559862b00b09f6193c0c9d9aea15ae519792 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 27 Jun 2023 22:38:26 +0200 Subject: [PATCH] fixed: show result if no category groups are defined --- src/utils.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils.js b/src/utils.js index 7e5afb1..d173d3a 100644 --- a/src/utils.js +++ b/src/utils.js @@ -266,6 +266,11 @@ export function WebSocketProvider({ setUserProfileStateUsername(body.User.Username); setAllUsers(body.AllUsers); setAllRoles(body.AllRoles); + + if (body.CategoryGroups === null) { + body.CategoryGroups = []; + } + setCategoryGroups(body.CategoryGroups); setGroupTasks(body.GroupTasks); setGroupTasksSteps(body.GroupTasksSteps);