Skip to content

Commit

Permalink
Add jsdoc comment to utils function
Browse files Browse the repository at this point in the history
  • Loading branch information
Kicu committed Oct 21, 2024
1 parent 60f52b5 commit c47ecc0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libs/SearchQueryUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ function findIDFromDisplayValue(filterName: ValueOf<typeof CONST.SEARCH.SYNTAX_F
return filter;
}

/**
* @private
* Computes and returns a numerical hash for a given queryJSON.
* Sorts the query keys and values to ensure that hashes stay consistent.
*/
function getQueryHash(query: SearchQueryJSON): number {
let orderedQuery = '';
if (query.policyID) {
Expand Down

0 comments on commit c47ecc0

Please sign in to comment.