Skip to content

Commit

Permalink
fix filters
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom committed Dec 9, 2023
1 parent ab9b611 commit ebead44
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default function CustomReport() {
endDate,
categories,
selectedCategories,
filters,
conditions: filters,
conditionsOp,
showEmpty,
showOffBudgetHidden,
Expand All @@ -137,7 +137,7 @@ export default function CustomReport() {
endDate,
categories,
selectedCategories,
filters,
conditions: filters,
conditionsOp,
showEmpty,
showOffBudgetHidden,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function cashFlowByDate(
function makeQuery(where) {
const query = q('transactions')
.filter({
[conditionsOpKey]: [...filters],
[conditionsOpKey]: filters,
})
.filter({
$and: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function makeQuery(
)
//Apply filters and split by "Group By"
.filter({
[conditionsOpKey]: [...filters],
[conditionsOpKey]: filters,
})
//Apply month range filters
.filter({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function createSpreadsheet(
runQuery(
q('transactions')
.filter({
[conditionsOpKey]: [...filters],
[conditionsOpKey]: filters,
})
.filter({
account: acct.id,
Expand Down

0 comments on commit ebead44

Please sign in to comment.