Skip to content

Commit

Permalink
minor fix.
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Gupta <[email protected]>
  • Loading branch information
Krishna2323 committed Oct 20, 2023
1 parent f64ffd0 commit 1608cca
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()}
</Text>
Expand Down

0 comments on commit 1608cca

Please sign in to comment.