From dbb3eb0e542e435632f589e5a3882d5a2272786c Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Tue, 7 Jul 2015 22:51:44 +0200 Subject: [PATCH] Series is already available in model. --- src/UI/Calendar/CalendarView.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/UI/Calendar/CalendarView.js b/src/UI/Calendar/CalendarView.js index ceb771eca..ca09d86d1 100644 --- a/src/UI/Calendar/CalendarView.js +++ b/src/UI/Calendar/CalendarView.js @@ -6,7 +6,6 @@ var CalendarCollection = require('./CalendarCollection'); var UiSettings = require('../Shared/UiSettingsModel'); var QueueCollection = require('../Activity/Queue/QueueCollection'); var Config = require('../Config'); -var SeriesCollection = require('../Series/SeriesCollection'); require('../Mixins/backbone.signalr.mixin'); require('fullcalendar'); @@ -96,7 +95,7 @@ module.exports = Marionette.ItemView.extend({ } } - else if (SeriesCollection.get(event.model.get('seriesId')).get('seriesType') === 'anime' && event.model.get('seasonNumber') > 0 && !event.model.has('absoluteEpisodeNumber')) { + else if (event.model.get('series').seriesType === 'anime' && event.model.get('seasonNumber') > 0 && !event.model.has('absoluteEpisodeNumber')) { this._addStatusIcon(element, 'icon-sonarr-form-warning', 'Episode does not have an absolute episode number'); } },