Commit 1b48385c authored by Florent POITTEVIN's avatar Florent POITTEVIN
Browse files

fix: counter on deposit tab

parent 8f04d3ad
......@@ -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)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment