diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-05-29 17:05:49 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-05-29 17:05:49 -0500 |
| commit | 762833d3fed517fd1acad9aa5ac469a6f894bc13 (patch) | |
| tree | ba673ed409ed0dfb641bc070bb59a2bcd693740b /src | |
| parent | a4280e899dd5d7b8b4cef6cb33fe48a375055e98 (diff) | |
| download | slskd-762833d3fed517fd1acad9aa5ac469a6f894bc13.tar.gz | |
dont save results to localstorage
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/components/Search/Search.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/src/components/Search/Search.js b/src/web/src/components/Search/Search.js index f1caee54..94b36051 100644 --- a/src/web/src/components/Search/Search.js +++ b/src/web/src/components/Search/Search.js @@ -72,7 +72,7 @@ class Search extends Component { saveState = () => { try { - localStorage.setItem('soulseek-example-search-state', JSON.stringify(this.state)); + localStorage.setItem('soulseek-example-search-state', JSON.stringify({ ...this.state, results: [] })); } catch(error) { console.log(error); } |
