Skip to content

Commit

Permalink
fix incorrect substring index (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
camdendotlol authored May 20, 2024
1 parent c181d7b commit 7714535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-data/src/utils/Typesense.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const getFieldId = (attribute: string) => {

let value = attribute.replaceAll(SUFFIX_FACET, '');
if (value.includes(ATTRIBUTE_DELIMITER)) {
value = value.substring(value.indexOf(ATTRIBUTE_DELIMITER) + 1, value.length - 1);
value = value.substring(value.indexOf(ATTRIBUTE_DELIMITER) + 1, value.length);
}

return value;
Expand Down

0 comments on commit 7714535

Please sign in to comment.