ui: enable error logging, remove immutable reference

This commit is contained in:
nick-delirium 2025-01-08 12:57:02 +01:00
parent b039209944
commit d8490bd96b
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
2 changed files with 2 additions and 1 deletions

View file

@ -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');
});
};

View file

@ -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);
}
}