refactor(searchStore): reformat filterMap function parameters
- Reformat the parameters of the filterMap function for better readability. - Comment out the fetchSessions call in clearSearch method to avoid unnecessary session fetch.
This commit is contained in:
parent
b94fcb11e5
commit
cf9ecdc9a4
1 changed files with 13 additions and 13 deletions
|
|
@ -39,7 +39,7 @@ export const filterMap = ({
|
|||
filters,
|
||||
sort,
|
||||
order
|
||||
}: any) => ({
|
||||
}: any) => ({
|
||||
value: checkValues(key, value),
|
||||
custom,
|
||||
type: category === FilterCategory.METADATA ? FilterKey.METADATA : key,
|
||||
|
|
@ -254,7 +254,7 @@ class SearchStore {
|
|||
|
||||
this.savedSearch = new SavedSearch({});
|
||||
sessionStore.clearList();
|
||||
void this.fetchSessions(true);
|
||||
// void this.fetchSessions(true);
|
||||
}
|
||||
|
||||
async checkForLatestSessionCount(): Promise<void> {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue