mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-12 19:03:11 +01:00
fix: payments filter (#2989)
This commit is contained in:
parent
ab0f52d811
commit
73a57ecf97
3 changed files with 3 additions and 3 deletions
2
lnbits/static/bundle.min.js
vendored
2
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -359,7 +359,7 @@ window.LNbits = {
|
|||
prepareFilterQuery(tableConfig, props) {
|
||||
if (props) {
|
||||
tableConfig.pagination = props.pagination
|
||||
tableConfig.filter = props.filter
|
||||
tableConfig.filter = {...tableConfig.filter, ...props.filter}
|
||||
}
|
||||
const pagination = tableConfig.pagination
|
||||
tableConfig.loading = true
|
||||
|
|
|
@ -312,7 +312,7 @@ window.PaymentsPageLogic = {
|
|||
|
||||
const timeFrom = this.searchDate.from + 'T00:00:00'
|
||||
const timeTo = this.searchDate.to + 'T23:59:59'
|
||||
this.lnbitsBalance = data[data.length - 1].balance
|
||||
this.lnbitsBalance = data.length ? data[data.length - 1].balance : 0
|
||||
data = data.filter(p => {
|
||||
if (this.searchDate.from && this.searchDate.to) {
|
||||
return p.date >= timeFrom && p.date <= timeTo
|
||||
|
|
Loading…
Add table
Reference in a new issue