[MM-47778] Remove Sign into another Server menu item when no servers exist (#2301)

This commit is contained in:
Devin Binnie
2022-10-21 09:14:02 -04:00
committed by GitHub
parent 167f7d832a
commit 179eacb582
2 changed files with 22 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ export function createTemplate(config: Config, updateManager: UpdateManager) {
},
});
if (config.data?.enableServerManagement === true) {
if (config.data?.enableServerManagement === true && config.data?.teams.length > 0) {
platformAppMenu.push({
label: localizeMessage('main.menus.app.file.signInToAnotherServer', 'Sign in to Another Server'),
click() {