Skip to content

Commit f14f15b

Browse files
authored
Fix empty collaborators list when file without icon is opened (#465)
1 parent e8fa767 commit f14f15b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/collaboration/src/collaboratorspanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export function Collaborator(props: {
177177
?.getFileTypesForPath(document)
178178
?.filter(ft => ft.icon !== undefined);
179179
const icon = fileTypes?.length ? fileTypes[0].icon : fileIcon;
180-
const iconClass: string | undefined = fileTypes
180+
const iconClass: string | undefined = fileTypes?.length
181181
? fileTypes[0].iconClass
182182
: undefined;
183183

0 commit comments

Comments
 (0)