Skip to content

Commit ea4f62e

Browse files
committed
do not error on hgmd for non-analysts
1 parent 5d6859c commit ea4f62e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/shared/utils/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ const SORT_BY_TAGGED_DATE = 'TAGGED_DATE'
12301230
const SORT_BY_SIZE = 'SIZE'
12311231

12321232
export const getPermissionedHgmdClass = (variant, user, familiesByGuid, projectByGuid) => (
1233-
user.isAnalyst || variant.familyGuids.some(
1233+
user.isAnalyst || (variant.familyGuids || []).some(
12341234
familyGuid => projectByGuid[familiesByGuid[familyGuid].projectGuid].enableHgmd,
12351235
)) && variant.hgmd && variant.hgmd.class
12361236

0 commit comments

Comments
 (0)