do not switch expression when there are no conditions
This commit is contained in:
@@ -105,6 +105,10 @@ export class TransactionExploreQuery {
|
||||
}
|
||||
|
||||
public toExpression(allCategoriesMap: Record<string, TransactionCategory>, allAccountsMap: Record<string, Account>, allTagsMap: Record<string, TransactionTag>): string {
|
||||
if (!this.conditions || this.conditions.length < 1) {
|
||||
return '';
|
||||
}
|
||||
|
||||
const postfixExprTokens = this.getPostfixExprTokens();
|
||||
const stack: ExpressionNode[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user