mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-08 06:48:51 +00:00
(js) Fix exception when no match in AB search
This commit is contained in:
@@ -457,10 +457,12 @@
|
||||
return this == card.id;
|
||||
};
|
||||
|
||||
// First entry of 'headers' are keys
|
||||
fields = _.invokeMap(response.headers[0], 'toLowerCase');
|
||||
idFieldIndex = fields.indexOf('id');
|
||||
response.headers.splice(0, 1);
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user