diff --git a/src/core_modules/capture-core/components/WidgetTwoEventWorkspace/hooks/useRelationshipTypeAccess.js b/src/core_modules/capture-core/components/WidgetTwoEventWorkspace/hooks/useRelationshipTypeAccess.js index cf4e55990a..484dbdf0c6 100644 --- a/src/core_modules/capture-core/components/WidgetTwoEventWorkspace/hooks/useRelationshipTypeAccess.js +++ b/src/core_modules/capture-core/components/WidgetTwoEventWorkspace/hooks/useRelationshipTypeAccess.js @@ -12,7 +12,7 @@ export const useRelationshipTypeAccess = (relationshipTypeId: string) => { () => storageController.get(userStores.RELATIONSHIP_TYPES, relationshipTypeId, { project: ({ access }) => ({ - hasWriteAccess: access?.write ?? false, + hasWriteAccess: access?.data?.write ?? false, }), }), {