Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core): use path
toString
function from @sanity/util/paths
(
#5987) ### Description When deriving search weights, we previously relied on a new `pathToString` function that replicated much of the functionality already implemented in the `toString` function from `@sanity/util/paths`. The one additional piece of functionality (handling segments that are `true`, `false`, or `null`) has now been implemented in #5986. Once merged, we can remove the redundant `pathToString` function and switch to the `toString` function from `@sanity/util/paths`. ### What to review - Search requests are constructed correctly. ### Testing There are tests for this functionality in `packages/sanity/src/core/search/common/__tests__/deriveSearchWeightsFromType.test.ts`.
- Loading branch information