From 3ea3f54286c94c1675b5cf584dc08ec089f02aba Mon Sep 17 00:00:00 2001 From: Lorenz Hilpert Date: Wed, 16 Sep 2020 18:37:05 +0200 Subject: [PATCH] Detailseite Header Bestellkanal --- .../src/app/modules/shelf/pipes/environment-channel.pipe.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/sales/src/app/modules/shelf/pipes/environment-channel.pipe.ts b/apps/sales/src/app/modules/shelf/pipes/environment-channel.pipe.ts index 688fc16a1..5709270f8 100644 --- a/apps/sales/src/app/modules/shelf/pipes/environment-channel.pipe.ts +++ b/apps/sales/src/app/modules/shelf/pipes/environment-channel.pipe.ts @@ -13,8 +13,11 @@ export class EnvironmentChannelPipe implements PipeTransform { ]); transform(clientChannel: EnvironmentChannel = 0, join: string = ' '): any { - const channels: string[] = []; + if (clientChannel === 0) { + return this.channels.get(0); + } + const channels: string[] = []; this.channels.forEach((value, key) => { // tslint:disable-next-line: no-bitwise if ((clientChannel | key) === key) {