mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Extra check to make sure trackedDownloadStatus exists on queue item
This commit is contained in:
@@ -24,11 +24,11 @@ define(
|
|||||||
var label = 'label-info';
|
var label = 'label-info';
|
||||||
|
|
||||||
var errors = QueueCollection.fullCollection.some(function (model) {
|
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) {
|
var warnings = QueueCollection.fullCollection.some(function (model) {
|
||||||
return model.get('trackedDownloadStatus').toLowerCase() === 'warning';
|
return model.has('trackedDownloadStatus') && model.get('trackedDownloadStatus').toLowerCase() === 'warning';
|
||||||
});
|
});
|
||||||
|
|
||||||
if (errors) {
|
if (errors) {
|
||||||
|
Reference in New Issue
Block a user