Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
change fields and distances position
Browse files Browse the repository at this point in the history
  • Loading branch information
Tumao727 committed Aug 13, 2021
1 parent b78f7ab commit 2e86c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/utils/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export const transferSearchResult = (
.sort((a, b) => a.score - b.score)
.map((r, index) => ({
rank: index + 1,
distance: r.score,
...r,
distance: r.score,
}));

return resultView;
Expand Down

0 comments on commit 2e86c96

Please sign in to comment.