We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfeabda commit bc8f643Copy full SHA for bc8f643
packages/instantsearch.js/src/lib/utils/createSendEventForHits.ts
@@ -73,9 +73,7 @@ const buildPayloads = ({
73
return [];
74
}
75
76
- const hitsArray: Hit[] = Array.isArray(hits)
77
- ? removeEscapedFromHits(hits)
78
- : [hits];
+ const hitsArray: Hit[] = Array.isArray(hits) ? hits : [hits];
79
80
if (hitsArray.length === 0) {
81
@@ -146,11 +144,6 @@ const buildPayloads = ({
146
144
147
145
};
148
149
-function removeEscapedFromHits(hits: Hit[] | EscapedHits): Hit[] {
150
- // remove `hits.__escaped` without mutating
151
- return hits.slice();
152
-}
153
-
154
export function createSendEventForHits({
155
instantSearchInstance,
156
index,
0 commit comments