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