Fix saving list view if not present in browser
This commit is contained in:
parent
fe8f0ecd67
commit
32984b88a3
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
|||
|
||||
export const saveListView = (listId, routeName) => {
|
||||
const savedListViewJson = JSON.parse(localStorage.getItem('listView'))
|
||||
const savedListView = localStorage.getItem('listView')
|
||||
let savedListViewJson = false
|
||||
if (savedListView !== null) {
|
||||
savedListViewJson = JSON.parse(savedListView)
|
||||
}
|
||||
|
||||
let listView = {}
|
||||
if(savedListViewJson) {
|
||||
|
|
Loading…
Reference in a new issue