mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Fixed: Add series won't incorrectly mark the series as existing when it fails to add
This commit is contained in:
parent
d494023504
commit
d9b9ffe8a2
@ -147,12 +147,11 @@ define(
|
||||
this.model.set('seasonFolder', seasonFolder);
|
||||
|
||||
var self = this;
|
||||
|
||||
SeriesCollection.add(this.model);
|
||||
|
||||
var promise = this.model.save();
|
||||
|
||||
promise.done(function () {
|
||||
SeriesCollection.add(self.model);
|
||||
|
||||
self.close();
|
||||
icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user