Skip to content

Commit 787f7a0

Browse files
committed
fix: fix runtime error when configuring a path with more than one dit in flexSearchOrder
1 parent 3b4ff68 commit 787f7a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schema-generation/utils/flex-search-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function getSortClausesForPrimarySort(
5252
// this would be cleaner if the primary sort was actually parsed into a ModelComponent (see e.g. the Index and IndexField classes)
5353
return objectType.flexSearchPrimarySort.map((clause) =>
5454
orderByType.getValueOrThrow(
55-
clause.field.path.replace('.', '_') +
55+
clause.field.path.replaceAll('.', '_') +
5656
(clause.direction === OrderDirection.ASCENDING ? '_ASC' : '_DESC'),
5757
),
5858
);

0 commit comments

Comments
 (0)