Skip to content

Commit

Permalink
BASIRA #219 - Adding null/undefined check to verb/entities in Documen…
Browse files Browse the repository at this point in the history
…tActions component
  • Loading branch information
dleadbetter committed Aug 3, 2023
1 parent ce181f4 commit f53d660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/DocumentActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const DocumentActions = (props: Props) => {
const verb = _.findWhere(action.qualifications, { value_list_object: 'Document', value_list_group: 'Action' });
const entity = _.findWhere(action.qualifications, { value_list_object: 'Action', value_list_group: 'Entity' });

return t('Document.labels.action', { verb: verb.value_list.human_name, entity: entity.value_list.human_name });
return t('Document.labels.action', { verb: verb?.value_list?.human_name, entity: entity?.value_list?.human_name });
}, []);

if (!props.items) {
Expand Down

0 comments on commit f53d660

Please sign in to comment.