From d312b32ff21c5f3b853d5c6f3cd30a3e9a1bddc2 Mon Sep 17 00:00:00 2001 From: aimane-chnaif Date: Thu, 21 Sep 2023 11:34:15 +1000 Subject: [PATCH] fix onyx betas key missing on chat selector page --- src/pages/NewChatSelectorPage.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/NewChatSelectorPage.js b/src/pages/NewChatSelectorPage.js index 89a3fd1adc72..ce0bbda0d239 100755 --- a/src/pages/NewChatSelectorPage.js +++ b/src/pages/NewChatSelectorPage.js @@ -1,4 +1,5 @@ import React from 'react'; +import {withOnyx} from 'react-native-onyx'; import OnyxTabNavigator, {TopTab} from '../libs/Navigation/OnyxTabNavigator'; import TabSelector from '../components/TabSelector/TabSelector'; import Navigation from '../libs/Navigation/Navigation'; @@ -6,6 +7,7 @@ import Permissions from '../libs/Permissions'; import NewChatPage from './NewChatPage'; import WorkspaceNewRoomPage from './workspace/WorkspaceNewRoomPage'; import CONST from '../CONST'; +import ONYXKEYS from '../ONYXKEYS'; import withWindowDimensions, {windowDimensionsPropTypes} from '../components/withWindowDimensions'; import HeaderWithBackButton from '../components/HeaderWithBackButton'; import ScreenWrapper from '../components/ScreenWrapper'; @@ -66,4 +68,10 @@ NewChatSelectorPage.propTypes = propTypes; NewChatSelectorPage.defaultProps = defaultProps; NewChatSelectorPage.displayName = 'NewChatPage'; -export default compose(withLocalize, withWindowDimensions)(NewChatSelectorPage); +export default compose( + withLocalize, + withWindowDimensions, + withOnyx({ + betas: {key: ONYXKEYS.BETAS}, + }), +)(NewChatSelectorPage);