Skip to content

Commit 4d29e67

Browse files
committed
fix(alert): set canBeMissing to true to avoid alerts
1 parent 474cc0a commit 4d29e67

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/libs/Navigation/OnyxTabNavigator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function OnyxTabNavigator({
110110
const isFirstMount = useRef(true);
111111
// Mapping of tab name to focus trap container element
112112
const [focusTrapContainerElementMapping, setFocusTrapContainerElementMapping] = useState<Record<string, HTMLElement>>({});
113-
const [selectedTab, selectedTabResult] = useOnyx(`${ONYXKEYS.COLLECTION.SELECTED_TAB}${id}`, {canBeMissing: false});
113+
const [selectedTab, selectedTabResult] = useOnyx(`${ONYXKEYS.COLLECTION.SELECTED_TAB}${id}`, {canBeMissing: true});
114114

115115
const tabNames = useMemo(() => getTabNames(children), [children]);
116116

src/pages/NewChatSelectorPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function NewChatSelectorPage() {
2525
const [headerWithBackBtnContainerElement, setHeaderWithBackButtonContainerElement] = useState<HTMLElement | null>(null);
2626
const [tabBarContainerElement, setTabBarContainerElement] = useState<HTMLElement | null>(null);
2727
const [activeTabContainerElement, setActiveTabContainerElement] = useState<HTMLElement | null>(null);
28-
const [formState] = useOnyx(ONYXKEYS.FORMS.NEW_ROOM_FORM, {canBeMissing: false});
28+
const [formState] = useOnyx(ONYXKEYS.FORMS.NEW_ROOM_FORM, {canBeMissing: true});
2929
const {shouldUseNarrowLayout} = useResponsiveLayout();
3030
const chatPageInputRef = useRef<AnimatedTextInputRef | null>(null);
3131
const roomPageInputRef = useRef<AnimatedTextInputRef | null>(null);

0 commit comments

Comments
 (0)