|
|
|
@ -56,7 +56,7 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
|
templateUrl: './accounts-table.component.html' |
|
|
|
}) |
|
|
|
export class GfAccountsTableComponent { |
|
|
|
public readonly accounts = input.required<AccountWithValue[]>(); |
|
|
|
public readonly accounts = input.required<AccountWithValue[] | undefined>(); |
|
|
|
public readonly activitiesCount = input<number>(); |
|
|
|
public readonly baseCurrency = input<string>(); |
|
|
|
public readonly hasPermissionToDeleteAccount = input<boolean>(); |
|
|
|
@ -159,7 +159,7 @@ export class GfAccountsTableComponent { |
|
|
|
|
|
|
|
// Reactive data update
|
|
|
|
effect(() => { |
|
|
|
this.dataSource.data = this.accounts(); |
|
|
|
this.dataSource.data = this.accounts() ?? []; |
|
|
|
}); |
|
|
|
|
|
|
|
// Reactive view connection
|
|
|
|
|