Skip to content
This repository was archived by the owner on Jun 18, 2023. It is now read-only.

Commit 2c27e25

Browse files
CS-BASFstavshamir
authored andcommitted
Fixed isSubscribe condition to support also producers
1 parent 48a2629 commit 2c27e25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/shared/asyncapi.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class AsyncApiService {
9292
}
9393

9494
private mapOperation(subscribe: { message: Message; bindings?: any; }, publish: { message: Message; bindings?: any; }): Operation {
95-
const isSubscribe = subscribe !== null;
95+
const isSubscribe = !!subscribe;
9696

9797
if (isSubscribe) {
9898
return {

0 commit comments

Comments
 (0)