Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
isCopyActionis true and the report is missing (which the comment below notes can happen after sign‑in or before the report loads), this branch now returnsoriginalReportAction?.childReportName ?? ''. BecausechildReportNameis optional (and not set on some report preview actions), the copy operation can silently produce an empty string instead of the visible preview text; previously it would fall back toreportActionMessagevia the empty‑report branch. This means users can get a blank clipboard entry in the missing‑report scenario. Consider falling back toreportActionMessagewhenchildReportNameis absent.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please leave comments on the AI feedback? @truph01
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
?? ''is just to address a type issue. As far as I know, there's no real scenario whereoriginalReportAction?.childReportNamewould be undefined. So we don't need to consider a fallback value forreportActionMessagein cases wherechildReportNameis absent.