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 3cb202b commit d4e34cfCopy full SHA for d4e34cf
src/providers/skohub-provider.js
@@ -195,6 +195,11 @@ export default class SkohubProvider extends BaseProvider {
195
postfix = `index${postfix}`
196
}
197
const data = await this.axios({ url: `${scheme.uri}${postfix}`, _skipAdditionalParameters: true })
198
+ if (data.length < 100) {
199
+ // Assume the index is empty and skip it
200
+ this._index[scheme.uri][lang] = null
201
+ continue
202
+ }
203
index = FlexSearch.create()
204
index.import(data)
205
this._index[scheme.uri][lang] = index
0 commit comments