Skip to content

Commit

Permalink
fix(ui): keep searchText in local storage
Browse files Browse the repository at this point in the history
Fix: #1437
  • Loading branch information
YLeight committed Jan 23, 2024
1 parent aa9f53c commit ea18e46
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/app/src/store/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class UiStore {
this.tags = t;
}

@persist
searchText = '';
setSearchText(s: string) {
this.searchText = s.toLowerCase();
Expand Down Expand Up @@ -173,9 +174,9 @@ class UiStore {
const response: MeData =
this._meInfo && this._meInfo.owner_pubkey
? {
...this._meInfo,
img: this._meInfo.img || getUserAvatarPlaceholder(this._meInfo.owner_pubkey)
}
...this._meInfo,
img: this._meInfo.img || getUserAvatarPlaceholder(this._meInfo.owner_pubkey)
}
: null;
return response;
}
Expand Down

0 comments on commit ea18e46

Please sign in to comment.