Fix lazy loaded cols (#268)

This commit is contained in:
Rinat Arsaev 2023-10-11 23:08:50 +07:00 committed by GitHub
parent 0a5e5f70fa
commit 908f6de4ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 11 deletions

8
package-lock.json generated
View File

@ -29,7 +29,7 @@
"@vality/dominant-cache-proto": "2.0.0",
"@vality/fistful-proto": "2.0.1-ed97a0e.0",
"@vality/magista-proto": "2.0.2-37b81e6.0",
"@vality/ng-core": "16.2.1-pr-40-5f4b5be.0",
"@vality/ng-core": "16.2.1-pr-40-adb1f52.0",
"@vality/payout-manager-proto": "2.0.0",
"@vality/repairer-proto": "2.0.2-f5e3b7a.0",
"@vality/thrift-ts": "2.4.1-8ad5123.0",
@ -6000,9 +6000,9 @@
"integrity": "sha512-gJizpTWuB74L+XuJ+dUaxAwJDkycdnuVwrXWIl/NKcS7++/zgrgTpw+tM5/Te3rWqkkCnSxC1SK0C4aPbbtifg=="
},
"node_modules/@vality/ng-core": {
"version": "16.2.1-pr-40-5f4b5be.0",
"resolved": "https://registry.npmjs.org/@vality/ng-core/-/ng-core-16.2.1-pr-40-5f4b5be.0.tgz",
"integrity": "sha512-J64AfaPDmExYO3PxrI9PgxDgNy5EbNhRyTWb5rkYHMhb+hkjVseuAZCgiEeNfTlGJ8qCZW1RoCseuFhjUSZnhw==",
"version": "16.2.1-pr-40-adb1f52.0",
"resolved": "https://registry.npmjs.org/@vality/ng-core/-/ng-core-16.2.1-pr-40-adb1f52.0.tgz",
"integrity": "sha512-dePHY8wWDE/lDthKkSibBrBQHTAbs1G8nHFiAnAR3Ntt6MOuWcti2qy9i9AxQ9nSN6o7yTzqS8S+GcbaVUYnpA==",
"dependencies": {
"@ng-matero/extensions": "^16.0.0",
"@s-libs/js-core": "^16.0.0",

View File

@ -37,7 +37,7 @@
"@vality/dominant-cache-proto": "2.0.0",
"@vality/fistful-proto": "2.0.1-ed97a0e.0",
"@vality/magista-proto": "2.0.2-37b81e6.0",
"@vality/ng-core": "16.2.1-pr-40-5f4b5be.0",
"@vality/ng-core": "16.2.1-pr-40-adb1f52.0",
"@vality/payout-manager-proto": "2.0.0",
"@vality/repairer-proto": "2.0.2-f5e3b7a.0",
"@vality/thrift-ts": "2.4.1-8ad5123.0",

View File

@ -2,15 +2,19 @@ import { Component, OnInit } from '@angular/core';
import { FormBuilder } from '@angular/forms';
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
import { StatWallet } from '@vality/fistful-proto/internal/fistful_stat';
import { clean, splitBySeparators, Column, QueryParamsService } from '@vality/ng-core';
import {
clean,
splitBySeparators,
Column,
QueryParamsService,
NotifyLogService,
} from '@vality/ng-core';
import { of } from 'rxjs';
import { startWith, map, shareReplay, catchError } from 'rxjs/operators';
import { Memoize } from 'typescript-memoize';
import { AccounterService } from '@cc/app/api/accounter';
import { WalletParams } from '@cc/app/api/fistful-stat/query-dsl/types/wallet';
import { ManagementService } from '@cc/app/api/wallet';
import { NotificationErrorService } from '@cc/app/shared/services/notification-error';
import { FetchWalletsService } from './fetch-wallets.service';
@ -45,8 +49,7 @@ export class WalletsComponent implements OnInit {
private qp: QueryParamsService<WalletParams>,
private fb: FormBuilder,
private walletManagementService: ManagementService,
private accounterService: AccounterService,
private errorService: NotificationErrorService,
private log: NotifyLogService,
) {}
ngOnInit() {
@ -78,7 +81,7 @@ export class WalletsComponent implements OnInit {
getBalance(walletId: string) {
return this.walletManagementService.GetAccountBalance(walletId).pipe(
catchError((err) => {
this.errorService.error(err);
this.log.error(err);
return of({});
}),
shareReplay({ refCount: true, bufferSize: 1 }),