mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix sonarcloud bug
This commit is contained in:
parent
23d0281ca0
commit
5238888ecf
2 changed files with 7 additions and 5 deletions
|
@ -156,8 +156,12 @@ class GroupSelectionMenu {
|
||||||
} else if (id == 'leave-group') {
|
} else if (id == 'leave-group') {
|
||||||
apiClient.leaveSyncPlayGroup();
|
apiClient.leaveSyncPlayGroup();
|
||||||
} else if (id == 'settings') {
|
} else if (id == 'settings') {
|
||||||
new SyncPlaySettingsEditor(apiClient, SyncPlay.Manager.getTimeSyncCore(), {
|
new SyncPlaySettingsEditor(apiClient, SyncPlay.Manager.getTimeSyncCore(), { groupInfo: groupInfo })
|
||||||
groupInfo: groupInfo
|
.embed()
|
||||||
|
.catch(error => {
|
||||||
|
if (error) {
|
||||||
|
console.error('Error creating SyncPlay settings editor', error);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
|
|
|
@ -37,8 +37,6 @@ class SettingsEditor {
|
||||||
|
|
||||||
this.tabNames = [];
|
this.tabNames = [];
|
||||||
this.tabs = {};
|
this.tabs = {};
|
||||||
|
|
||||||
this.embed();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
insertBefore(newNode, existingNode) {
|
insertBefore(newNode, existingNode) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue