We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8868257 commit 0f4cea7Copy full SHA for 0f4cea7
src/core/lib/utils.js
@@ -288,7 +288,7 @@ export function sendRequest(queryObject, options) {
288
} else {
289
if (cachePolicy === 2 && self.provider !== null) {
290
self.provider.get(hashQuery, function(err, _data) {
291
- if (err || !_data || (_data.entries && _data.entries.length === 0) || (_data.assets && _data.assets.length === 0)) {
+ if (err || !_data || (_data.entries.length === 0 && _data.assets.length === 0)) {
292
return reject({ error_code: 141, error_message: 'The requested entry doesn\'t exist.' });
293
}
294
getCacheCallback()(err, _data);
0 commit comments