From 1608cca8791e373a331d2026789ad1f22dde987d Mon Sep 17 00:00:00 2001 From: Krishna Gupta Date: Fri, 20 Oct 2023 19:05:40 +0530 Subject: [PATCH] minor fix. Signed-off-by: Krishna Gupta --- src/components/MenuItem.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/MenuItem.js b/src/components/MenuItem.js index 769e9ae0f41b..3c52c41f1992 100644 --- a/src/components/MenuItem.js +++ b/src/components/MenuItem.js @@ -115,7 +115,6 @@ const MenuItem = React.forwardRef((props, ref) => { const fallbackAvatarSize = props.viewMode === CONST.OPTION_MODE.COMPACT ? CONST.AVATAR_SIZE.SMALL : CONST.AVATAR_SIZE.DEFAULT; const titleRef = React.useRef(''); - const titleContainerRef = React.useRef(null); useEffect(() => { if (!props.title || (titleRef.current.length && titleRef.current === props.title) || !props.shouldParseTitle) { return; @@ -283,7 +282,6 @@ const MenuItem = React.forwardRef((props, ref) => { style={titleTextStyle} numberOfLines={props.numberOfLinesTitle || undefined} dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: props.interactive && props.disabled}} - ref={titleContainerRef} > {renderTitleContent()}