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.
2 parents c20e20c + d374b42 commit e56ded5Copy full SHA for e56ded5
src/lib/indexes.ts
@@ -33,7 +33,6 @@ import {
33
SortableAttributes,
34
SearchableAttributes,
35
DisplayedAttributes,
36
- FetchError,
37
} from '../types'
38
import { sleep, removeUndefinedFromObject } from './utils'
39
import { HttpRequests } from './http-requests'
@@ -225,7 +224,7 @@ class Index<T = Record<string, any>> {
225
224
try {
226
await this.delete()
227
return true
228
- } catch (e: any | FetchError) {
+ } catch (e) {
229
if (e.errorCode === 'index_not_found') {
230
return false
231
}
0 commit comments