mirror of https://github.com/lidarr/Lidarr
Fixed: Blank Page after Delete for Index/Editor (Avoid null broadcasts)
This commit is contained in:
parent
77b565c882
commit
e6489eaca3
|
@ -138,6 +138,11 @@ class SignalRConnector extends Component {
|
|||
|
||||
const handler = this[getHandlerName(name)];
|
||||
|
||||
if (body && body.action === 'updated' && !body.resource) {
|
||||
console.error(`signalR: Null resource broadcast ignored for ${name}`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (handler) {
|
||||
handler(body);
|
||||
return;
|
||||
|
|
|
@ -58,7 +58,7 @@ namespace Lidarr.Http
|
|||
|
||||
protected void BroadcastResourceChange(ModelAction action, TResource resource)
|
||||
{
|
||||
if (!_signalRBroadcaster.IsConnected)
|
||||
if (!_signalRBroadcaster.IsConnected || resource == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue