(js) Fix exception when no match in AB search
parent
4b0fadbe22
commit
7fe576f277
|
@ -457,10 +457,12 @@
|
||||||
return this == card.id;
|
return this == card.id;
|
||||||
};
|
};
|
||||||
|
|
||||||
// First entry of 'headers' are keys
|
if (response.headers) {
|
||||||
fields = _.invokeMap(response.headers[0], 'toLowerCase');
|
// First entry of 'headers' are keys
|
||||||
idFieldIndex = fields.indexOf('id');
|
fields = _.invokeMap(response.headers[0], 'toLowerCase');
|
||||||
response.headers.splice(0, 1);
|
idFieldIndex = fields.indexOf('id');
|
||||||
|
response.headers.splice(0, 1);
|
||||||
|
}
|
||||||
|
|
||||||
if (excludedCards)
|
if (excludedCards)
|
||||||
// Remove excluded cards from results
|
// Remove excluded cards from results
|
||||||
|
|
Loading…
Reference in New Issue