Fix array nesting

This commit is contained in:
Bill Thornton
2026-07-14 15:40:19 -04:00
parent 7c44877368
commit faa6062cec
2 changed files with 3 additions and 3 deletions
@@ -39,8 +39,8 @@ EmbyItemRefreshIndicatorPrototype.createdCallback = function () {
};
const serverId = dom.parentWithAttribute(this, 'data-serverid').getAttribute('data-serverid');
this._wsUnsubscribers = ServerConnections.getApiClient(serverId)
.subscribe([OutboundWebSocketMessageType.RefreshProgress], handler);
this._wsUnsubscribers = [ServerConnections.getApiClient(serverId)
.subscribe([OutboundWebSocketMessageType.RefreshProgress], handler)];
};
EmbyItemRefreshIndicatorPrototype.attachedCallback = function () {
@@ -302,7 +302,7 @@ ItemsContainerPrototype.attachedCallback = function () {
this._wsApiClientCreatedHandler = (e, newApiClient) => {
this._wsUnsubscribers = (this._wsUnsubscribers ?? []).concat(subscribeToApiClient(newApiClient));
};
this._wsUnsubscribers = [subscribeToApiClient(ServerConnections.currentApiClient())];
this._wsUnsubscribers = subscribeToApiClient(ServerConnections.currentApiClient());
addNotificationEvent(this, 'playbackstop', onPlaybackStopped, playbackManager);