mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 05:01:10 +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'
|
localStorage.getItem('permissions') && localStorage.getItem('permissions') !== 'undefined'
|
||||||
? JSON.parse(localStorage.getItem('permissions'))
|
? JSON.parse(localStorage.getItem('permissions'))
|
||||||
: null,
|
: 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({
|
const authSlice = createSlice({
|
||||||
|
|||||||
Reference in New Issue
Block a user