groups: fix no-case-declarations lint error

This commit is contained in:
David Farrell 2022-04-12 20:27:07 -04:00
parent fa8e800082
commit e7c42670e4

View File

@ -11,8 +11,7 @@ export function getTitleFromWorkspace(
case 'messages':
return 'Messages';
case 'group':
const association = associations.groups[workspace.group];
return association?.metadata?.title || 'Groups';
return associations.groups[workspace.group]?.metadata?.title || 'Groups';
}
}