Skip to content

Commit

Permalink
- fixed handling current category on transaction form
Browse files Browse the repository at this point in the history
  • Loading branch information
krybc committed Aug 23, 2021
1 parent 04b6f3f commit a5fc35d
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,7 @@ export class TransactionFormComponent implements OnChanges {
}

accounts: Account[];

get categories() {
return this._categories;
}
set categories(value: Category[]) {
this._categories = value;
this.categoriesTree = CategoriesFactories.createTree(value);
}
private _categories: Category[];

categories: Category[];
contractors: Contractor[];

get queryParams() {
Expand Down Expand Up @@ -115,6 +106,7 @@ export class TransactionFormComponent implements OnChanges {

if (value.categories) {
this.categories = value.categories;
this.categoriesTree = CategoriesFactories.createTree(value.categories);
}

if (value.contractors) {
Expand Down

0 comments on commit a5fc35d

Please sign in to comment.