ui: enable error logging, remove immutable reference
This commit is contained in:
parent
b039209944
commit
d8490bd96b
2 changed files with 2 additions and 1 deletions
|
|
@ -30,6 +30,7 @@ function SaveSearchModal({ show, closeHandler, rename = false }: Props) {
|
|||
closeHandler();
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error(e)
|
||||
toast.error('Something went wrong, please try again');
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ class SearchStore {
|
|||
await this.fetchSavedSearchList();
|
||||
|
||||
if (isNew) {
|
||||
const lastSavedSearch = this.list.last();
|
||||
const lastSavedSearch = this.list[this.list.length - 1];
|
||||
this.applySavedSearch(lastSavedSearch);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue