Skip to content

Commit

Permalink
Merge pull request #49202 from SIMalik/issue-47874
Browse files Browse the repository at this point in the history
LHN - RBR appears on the wrong workspace chat for an error occurring on another workspace
  • Loading branch information
neil-marcellini authored Oct 17, 2024
2 parents aecea43 + 5d001f6 commit 50482b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6310,7 +6310,7 @@ type ReportErrorsAndReportActionThatRequiresAttention = {
};

function getAllReportActionsErrorsAndReportActionThatRequiresAttention(report: OnyxEntry<Report>, reportActions: OnyxEntry<ReportActions>): ReportErrorsAndReportActionThatRequiresAttention {
const reportActionsArray = Object.values(reportActions ?? {});
const reportActionsArray = Object.values(reportActions ?? {}).filter((action) => !ReportActionsUtils.isDeletedAction(action));
const reportActionErrors: ErrorFields = {};
let reportAction: OnyxEntry<ReportAction>;

Expand Down
1 change: 1 addition & 0 deletions tests/unit/DebugUtilsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,7 @@ describe('DebugUtils', () => {
errors: {
randomError: 'Random error',
},
message: [{html: 'text', text: 'text', type: 'COMMENT'}],
},
// eslint-disable-next-line @typescript-eslint/naming-convention
'2': {
Expand Down

0 comments on commit 50482b1

Please sign in to comment.