Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Sep 27, 2022
1 parent 2e42fcf commit 686e5af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/src/components/shell/persistance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export function persistApplications(applications: any[]) {

export function retrieveApplications() {
try {
return JSON.parse(localStorage.getItem(SELECTED_APPLICATIONS_LOCAL_STORAGE_KEY) as string) as any[]
const res = JSON.parse(localStorage.getItem(SELECTED_APPLICATIONS_LOCAL_STORAGE_KEY) as string) as any[]

return res || []
}
catch (error) {
return []
Expand Down

0 comments on commit 686e5af

Please sign in to comment.