@sonic-equipment/ui 0.0.59 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7575,6 +7575,9 @@ const offlineSearchClient = {
|
|
|
7575
7575
|
|
|
7576
7576
|
const createSonicSearchClient = ({ apiKey, appId, host, }) => {
|
|
7577
7577
|
const searchClient = algoliasearch(appId, apiKey);
|
|
7578
|
+
if (!host) {
|
|
7579
|
+
return searchClient;
|
|
7580
|
+
}
|
|
7578
7581
|
const read = searchClient.transporter.read;
|
|
7579
7582
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
7580
7583
|
// @ts-ignore
|