return empty array when search is empty
This commit is contained in:
parent
f0e08e94c6
commit
34d35929f4
1 changed files with 4 additions and 1 deletions
|
|
@ -954,7 +954,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
return [month, day, year].join('/');
|
return [month, day, year].join('/');
|
||||||
};
|
};
|
||||||
|
|
||||||
if (lodash.isEmpty(search)) return;
|
if (lodash.isEmpty(search)) {
|
||||||
|
self.historyShowMore = false;
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
self.result = lodash.filter(self.completeHistory, function(tx) {
|
self.result = lodash.filter(self.completeHistory, function(tx) {
|
||||||
return lodash.includes(tx.amountStr, search) ||
|
return lodash.includes(tx.amountStr, search) ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue