From e4899fa551d53ec07718659eed97178052982552 Mon Sep 17 00:00:00 2001 From: hmhealey Date: Tue, 15 Dec 2015 11:36:14 -0500 Subject: Improved PreferenceStore api when getting values --- web/react/components/posts_view.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/react/components/posts_view.jsx') diff --git a/web/react/components/posts_view.jsx b/web/react/components/posts_view.jsx index cc4f5e138..e116fdeea 100644 --- a/web/react/components/posts_view.jsx +++ b/web/react/components/posts_view.jsx @@ -26,7 +26,7 @@ export default class PostsView extends React.Component { this.wasAtBottom = true; this.scrollHeight = 0; - this.state = {displayNameType: PreferenceStore.getPreference(Preferences.CATEGORY_DISPLAY_SETTINGS, 'name_format', {value: 'false'}).value}; + this.state = {displayNameType: PreferenceStore.get(Preferences.CATEGORY_DISPLAY_SETTINGS, 'name_format', 'false')}; } static get SCROLL_TYPE_FREE() { return 1; @@ -44,7 +44,7 @@ export default class PostsView extends React.Component { return 5; } updateState() { - this.setState({displayNameType: PreferenceStore.getPreference(Preferences.CATEGORY_DISPLAY_SETTINGS, 'name_format', {value: 'false'}).value}); + this.setState({displayNameType: PreferenceStore.get(Preferences.CATEGORY_DISPLAY_SETTINGS, 'name_format', 'false')}); } isAtBottom() { return ((this.refs.postlist.scrollHeight - this.refs.postlist.scrollTop) === this.refs.postlist.clientHeight); -- cgit v1.2.3-1-g7c22