From 3c140110fe869335f54604706aae629c54170827 Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Thu, 21 Oct 2021 13:04:38 +0200 Subject: [PATCH] fix: wrap link to edit context field in hasAccess check --- frontend/src/component/context/ContextList/ContextList.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/component/context/ContextList/ContextList.jsx b/frontend/src/component/context/ContextList/ContextList.jsx index 21e2d8b191..d055e93a5f 100644 --- a/frontend/src/component/context/ContextList/ContextList.jsx +++ b/frontend/src/component/context/ContextList/ContextList.jsx @@ -4,7 +4,7 @@ import HeaderTitle from '../../common/HeaderTitle'; import ConditionallyRender from '../../common/ConditionallyRender/ConditionallyRender'; import { CREATE_CONTEXT_FIELD, - DELETE_CONTEXT_FIELD, + DELETE_CONTEXT_FIELD, UPDATE_CONTEXT_FIELD, } from '../../providers/AccessProvider/permissions'; import { IconButton, @@ -39,10 +39,10 @@ const ContextList = ({ removeContextField, history, contextFields }) => { + {field.name} - } + } elseShow={{field.name}} />} secondary={field.description} />