From 30e8b5bf44821d21b6b7d8f84998df5e60762020 Mon Sep 17 00:00:00 2001
From: Andreas Ellewsen <ae@uio.no>
Date: Fri, 10 Dec 2021 13:25:39 +0100
Subject: [PATCH] Remove a stray slash

---
 frontend/src/hooks/useRoleTypes/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frontend/src/hooks/useRoleTypes/index.tsx b/frontend/src/hooks/useRoleTypes/index.tsx
index 2c8eec3d..a1867130 100644
--- a/frontend/src/hooks/useRoleTypes/index.tsx
+++ b/frontend/src/hooks/useRoleTypes/index.tsx
@@ -12,7 +12,7 @@ function useRoleTypes(): RoleTypeData[] {
   const [roleTypes, setRoleTypes] = useState<RoleTypeData[]>([])
 
   async function fetchRoleTypes() {
-    fetch(`/api/ui/v1/roletypes`)
+    fetch(`/api/ui/v1/roletypes/`)
       .then((data) => data.text())
       .then((result) => {
         // The response is a JSON-array
-- 
GitLab