|
@@ -152,24 +152,26 @@ export const MobileMenu = ({
|
|
|
<Stack.Col gap={4}>
|
|
|
{renderCanvasActions()}
|
|
|
{renderCustomFooter?.(true)}
|
|
|
- <fieldset>
|
|
|
- <legend>{t("labels.collaborators")}</legend>
|
|
|
- <UserList mobile>
|
|
|
- {Array.from(appState.collaborators)
|
|
|
- // Collaborator is either not initialized or is actually the current user.
|
|
|
- .filter(
|
|
|
- ([_, client]) => Object.keys(client).length !== 0,
|
|
|
- )
|
|
|
- .map(([clientId, client]) => (
|
|
|
- <React.Fragment key={clientId}>
|
|
|
- {actionManager.renderAction(
|
|
|
- "goToCollaborator",
|
|
|
- clientId,
|
|
|
- )}
|
|
|
- </React.Fragment>
|
|
|
- ))}
|
|
|
- </UserList>
|
|
|
- </fieldset>
|
|
|
+ {appState.collaborators.size > 0 && (
|
|
|
+ <fieldset>
|
|
|
+ <legend>{t("labels.collaborators")}</legend>
|
|
|
+ <UserList mobile>
|
|
|
+ {Array.from(appState.collaborators)
|
|
|
+ // Collaborator is either not initialized or is actually the current user.
|
|
|
+ .filter(
|
|
|
+ ([_, client]) => Object.keys(client).length !== 0,
|
|
|
+ )
|
|
|
+ .map(([clientId, client]) => (
|
|
|
+ <React.Fragment key={clientId}>
|
|
|
+ {actionManager.renderAction(
|
|
|
+ "goToCollaborator",
|
|
|
+ clientId,
|
|
|
+ )}
|
|
|
+ </React.Fragment>
|
|
|
+ ))}
|
|
|
+ </UserList>
|
|
|
+ </fieldset>
|
|
|
+ )}
|
|
|
</Stack.Col>
|
|
|
</div>
|
|
|
</Section>
|