From e8550b6c6e3b9378639bfbfaec9c48d1f078e380 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 8 Sep 2013 17:35:39 -0700 Subject: [PATCH] Allow editing of unknown episode file quality --- UI/Cells/Edit/QualityCellEditor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UI/Cells/Edit/QualityCellEditor.js b/UI/Cells/Edit/QualityCellEditor.js index 711bbed99..51ebceb55 100644 --- a/UI/Cells/Edit/QualityCellEditor.js +++ b/UI/Cells/Edit/QualityCellEditor.js @@ -28,7 +28,10 @@ define( self.schema = qualityProfileSchemaCollection.first(); var selected = _.find(self.schema.get('available'), { 'id': self.model.get(self.column.get("name")).quality.id }); - selected.selected = true; + + if (selected) { + selected.selected = true; + } self.templateFunction = Marionette.TemplateCache.get(templateName); var data = self.schema.toJSON();