diff --git a/client/homebrew/pages/basePages/listPage/listPage.jsx b/client/homebrew/pages/basePages/listPage/listPage.jsx index 776d16ec7..5fbb3c9de 100644 --- a/client/homebrew/pages/basePages/listPage/listPage.jsx +++ b/client/homebrew/pages/basePages/listPage/listPage.jsx @@ -14,10 +14,9 @@ const ListPage = createClass({ return { brewCollection : [ { - title : '', - class : '', - brews : [], - visible : true + title : '', + class : '', + brews : [] } ], navItems : <> @@ -46,8 +45,7 @@ const ListPage = createClass({ // LOAD FROM LOCAL STORAGE if(typeof window !== 'undefined') { const brewCollection = this.props.brewCollection.map((brewGroup)=>{ - const localVisibility = (localStorage.getItem(`${USERPAGE_KEY_PREFIX}-${brewGroup.class}`) ?? 'true')=='true'; - brewGroup.visible = (brewGroup.visible != localVisibility ? localVisibility : brewGroup.visible); + brewGroup.visible = (localStorage.getItem(`${USERPAGE_KEY_PREFIX}-${brewGroup.class}`) ?? 'true')=='true'; return brewGroup; }); this.setState({ diff --git a/client/homebrew/pages/userPage/userPage.jsx b/client/homebrew/pages/userPage/userPage.jsx index 861351c6f..c9abc5d76 100644 --- a/client/homebrew/pages/userPage/userPage.jsx +++ b/client/homebrew/pages/userPage/userPage.jsx @@ -40,10 +40,9 @@ const UserPage = createClass({ if(this.props.username == global.account?.username){ brewCollection.push( { - title : `${usernameWithS} unpublished brews`, - class : 'unpublished', - brews : brews.private, - visible : true + title : `${usernameWithS} unpublished brews`, + class : 'unpublished', + brews : brews.private } ); }