mirror of
https://github.com/Sonarr/Sonarr
synced 2025-01-18 21:29:46 +00:00
Extra check to make sure trackedDownloadStatus exists on queue item
This commit is contained in:
parent
28f7e256b2
commit
9d8e4de7b4
1 changed files with 2 additions and 2 deletions
|
@ -24,11 +24,11 @@ define(
|
|||
var label = 'label-info';
|
||||
|
||||
var errors = QueueCollection.fullCollection.some(function (model) {
|
||||
return model.get('trackedDownloadStatus').toLowerCase() === 'error';
|
||||
return model.has('trackedDownloadStatus') && model.get('trackedDownloadStatus').toLowerCase() === 'error';
|
||||
});
|
||||
|
||||
var warnings = QueueCollection.fullCollection.some(function (model) {
|
||||
return model.get('trackedDownloadStatus').toLowerCase() === 'warning';
|
||||
return model.has('trackedDownloadStatus') && model.get('trackedDownloadStatus').toLowerCase() === 'warning';
|
||||
});
|
||||
|
||||
if (errors) {
|
||||
|
|
Loading…
Reference in a new issue