mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Fixed empty member for logged in state
no issue - Fetching member for preview or dev mode was overwtiting member as null for prod - Fixes by returning default member state for non preview/dev mode
This commit is contained in:
parent
4eec6f31ec
commit
d240b85319
1 changed files with 1 additions and 6 deletions
|
@ -90,11 +90,6 @@ export default class App extends React.Component {
|
|||
});
|
||||
}
|
||||
|
||||
isPreviewMode() {
|
||||
const [path, qs] = window.location.hash.substr(1).split('?');
|
||||
return (path === '/portal' && qs);
|
||||
}
|
||||
|
||||
getStateFromQueryString(qs = '') {
|
||||
const previewState = {
|
||||
site: {}
|
||||
|
@ -180,7 +175,7 @@ export default class App extends React.Component {
|
|||
} else if (process.env.NODE_ENV === 'development') {
|
||||
return member || Fixtures.member.free;
|
||||
}
|
||||
return null;
|
||||
return member;
|
||||
}
|
||||
|
||||
async initSetup() {
|
||||
|
|
Loading…
Add table
Reference in a new issue