Skip to content

Commit b47c44a

Browse files
committed
Improve comments
1 parent 9870988 commit b47c44a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libs/actions/Task.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,10 +721,9 @@ function getShareDestination(reportID: string, reports: OnyxCollection<OnyxTypes
721721

722722
/**
723723
* Returns the parentReportAction if the given report is a thread/task.
724-
*
725-
* @deprecated Use Onyx.connect() or withOnyx() instead
726724
*/
727725
function getParentReportAction(report: OnyxEntry<OnyxTypes.Report>): ReportAction | Record<string, never> {
726+
// If the report is not a thread report, then it won't have a parent and an empty object can be returned.
728727
if (!report?.parentReportID || !report.parentReportActionID) {
729728
return {};
730729
}

0 commit comments

Comments
 (0)