aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-05-29 17:05:49 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-05-29 17:05:49 -0500
commit762833d3fed517fd1acad9aa5ac469a6f894bc13 (patch)
treeba673ed409ed0dfb641bc070bb59a2bcd693740b /src
parenta4280e899dd5d7b8b4cef6cb33fe48a375055e98 (diff)
downloadslskd-762833d3fed517fd1acad9aa5ac469a6f894bc13.tar.gz
dont save results to localstorage
Diffstat (limited to 'src')
-rw-r--r--src/web/src/components/Search/Search.js2
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);
}