Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/9d8e4de7b48b7b9a840a8a345bd09da02c52c811?style=split&whitespace=show-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

Extra check to make sure trackedDownloadStatus exists on queue item

pull/123/head
Mark McDowall 10 years ago
parent 28f7e256b2
commit 9d8e4de7b4

@ -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) {

Loading…
Cancel
Save