From 1b48385c6f99acc25e2f93dc55ff6216460e6e7a Mon Sep 17 00:00:00 2001 From: Florent POITTEVIN <poittevin.florent@gmail.com> Date: Mon, 25 May 2020 10:01:01 +0200 Subject: [PATCH] fix: counter on deposit tab --- src/app/features/deposit/stores/deposit.state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/features/deposit/stores/deposit.state.ts b/src/app/features/deposit/stores/deposit.state.ts index 48809a871..3e980a26a 100644 --- a/src/app/features/deposit/stores/deposit.state.ts +++ b/src/app/features/deposit/stores/deposit.state.ts @@ -686,7 +686,7 @@ export class DepositState extends ResourceState<DepositStateModel, Deposit> { refreshCounterStatusTab(ctx: StateContext<DepositStateModel>, action: DepositAction.RefreshCounterStatusTab): Observable<number> { const queryParameters = new QueryParameters(environment.minimalPageSizeToRetrievePaginationInfo); const searchItems = QueryParametersUtil.getSearchItems(queryParameters); - if (!isNullOrUndefined(ctx.getState().deposit_organizationalUnit) && isNullOrUndefined(ctx.getState().deposit_organizationalUnit.current)) { + if (!isNullOrUndefined(ctx.getState().deposit_organizationalUnit) && !isNullOrUndefined(ctx.getState().deposit_organizationalUnit.current)) { MappingObjectUtil.set(searchItems, "organizationalUnitId", ctx.getState().deposit_organizationalUnit.current.resId); } if (!isUndefined(action.status)) { -- GitLab