diff --git a/src/components/LHNOptionsList/OptionRowLHN.js b/src/components/LHNOptionsList/OptionRowLHN.js index ffc0584b6fff..42e9168ba940 100644 --- a/src/components/LHNOptionsList/OptionRowLHN.js +++ b/src/components/LHNOptionsList/OptionRowLHN.js @@ -55,10 +55,11 @@ const defaultProps = { const OptionRowLHN = (props) => { const optionItem = SidebarUtils.getOptionData(props.reportID); + const isPinned = _.get(optionItem, 'isPinned', false); React.useEffect(() => { ReportActionContextMenu.hideContextMenu(false); - }, [optionItem.isPinned]); + }, [isPinned]); if (!optionItem) { return null;