1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

set default values for getting the list of ordered plugins

This commit is contained in:
Cody Robibero 2024-09-04 11:28:58 -06:00
parent 00e002faeb
commit 96e49dadd4

View file

@ -622,7 +622,7 @@ export function getLibraryOptions(parent) {
return options;
}
function getOrderedPlugins(plugins, configuredOrder) {
function getOrderedPlugins(plugins = [], configuredOrder = []) {
plugins = plugins.slice(0);
plugins.sort((a, b) => {
a = configuredOrder.indexOf(a.Name);