fix: enabled button when an error occurs
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-01-23 11:50:54 +01:00
parent 9b0134cb1c
commit 5a19e5801f
1 changed files with 2 additions and 1 deletions

View File

@ -589,7 +589,8 @@ export default class SmartTable extends Component {
refresh() {
this.isRefreshing = true;
this.model.refresh()
.then(() => this.isRefreshing = false);
.then(() => this.isRefreshing = false)
.catch(() => this.isRefreshing = false);
}
}