Skip to content

Commit

Permalink
check if the children has composer or not instead
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Nov 12, 2024
1 parent 1d5bde0 commit 0bf59fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/components/FlatList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ function MVCPFlatList<TItem>({maintainVisibleContentPosition, horizontal = false
}
firstVisibleViewRef.current = null;
});
console.log('mutation added', mutation.addedNodes)

Check failure on line 157 in src/components/FlatList/index.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Unexpected console statement

Check failure on line 157 in src/components/FlatList/index.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Insert `;`
mutation.addedNodes.forEach((node) => {
if (node.nodeType !== Node.ELEMENT_NODE || (node as HTMLElement).dataset.isEditing !== 'true') {
if (node.nodeType !== Node.ELEMENT_NODE || !(node as HTMLElement).querySelector('#composer')) {
return;
}
isEditComposerAdded = true;
Expand Down
5 changes: 1 addition & 4 deletions src/pages/home/report/ReportActionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -957,10 +957,7 @@ function ReportActionItem({
shouldFreezeCapture={isPaymentMethodPopoverActive}
>
{(hovered) => (
<View
style={highlightedBackgroundColorIfNeeded}
dataSet={{isEditing: !!draftMessage}}
>
<View style={highlightedBackgroundColorIfNeeded}>
{shouldDisplayNewMarker && (!shouldUseThreadDividerLine || !isFirstVisibleReportAction) && <UnreadActionIndicator reportActionID={action.reportActionID} />}
{shouldDisplayContextMenu && (
<MiniReportActionContextMenu
Expand Down

0 comments on commit 0bf59fb

Please sign in to comment.