mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
fix bug:JSON Parse Error in authSlice.js: Parsing 'undefined' Value C… (#4612)
fix bug:JSON Parse Error in authSlice.js: Parsing 'undefined' Value Causes Blank Page#4611
This commit is contained in:
@@ -11,7 +11,10 @@ const initialState = {
|
||||
localStorage.getItem('permissions') && localStorage.getItem('permissions') !== 'undefined'
|
||||
? JSON.parse(localStorage.getItem('permissions'))
|
||||
: null,
|
||||
features: localStorage.getItem('features') ? JSON.parse(localStorage.getItem('features')) : null
|
||||
features:
|
||||
localStorage.getItem('features') && localStorage.getItem('features') !== 'undefined'
|
||||
? JSON.parse(localStorage.getItem('features'))
|
||||
: null
|
||||
}
|
||||
|
||||
const authSlice = createSlice({
|
||||
|
||||
Reference in New Issue
Block a user