Skip to content

Commit

Permalink
Clean sources
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed May 7, 2024
1 parent 08efcbc commit 5aef677
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/collaboration/src/collaboratorspanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,9 @@ export function Collaborator(props: {
}

const documents: string[] = collaborator.documents || [];
console.log(documents);

const docs = documents.map(document => {
const path = document.split(':');
const ft = props.docRegistry?.fileTypes();
if (ft) {
Array.from(ft).forEach(f => {
console.log(f);
});
}
const fileTypes = props.docRegistry
?.getFileTypesForPath(path[1])
?.filter(ft => ft.icon !== undefined);
Expand All @@ -190,7 +184,7 @@ export function Collaborator(props: {
iconClass
};
});
console.log('DOCS', docs);

const onClick = () => {
if (docs.length) {
setOpen(!open);
Expand Down

0 comments on commit 5aef677

Please sign in to comment.