mirror of
https://github.com/Sonarr/Sonarr
synced 2025-01-01 12:45:03 +00:00
Logs won't throw when cleared from a page past page 1
This commit is contained in:
parent
0974d275ef
commit
ffce325edb
1 changed files with 2 additions and 1 deletions
|
@ -98,7 +98,7 @@ define(
|
|||
successMessage : 'Logs have been cleared',
|
||||
errorMessage : 'Failed to clear logs',
|
||||
ownerContext : this,
|
||||
onSuccess: this._refreshLogs
|
||||
onSuccess : this._refreshLogs
|
||||
},
|
||||
|
||||
{
|
||||
|
@ -119,6 +119,7 @@ define(
|
|||
},
|
||||
|
||||
_refreshLogs: function () {
|
||||
this.collection.state.currentPage = 1;
|
||||
this.collection.fetch({ reset: true });
|
||||
this._showTable();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue