From 91c05ff77efae91ddaa41e3f57a3c0f6d73feff9 Mon Sep 17 00:00:00 2001 From: fmvilas Date: Fri, 11 Jan 2019 19:43:55 +0100 Subject: [PATCH] Fix template --- templates/markdown/.partials/events.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/markdown/.partials/events.md b/templates/markdown/.partials/events.md index 8a98a986c..99541ed7a 100644 --- a/templates/markdown/.partials/events.md +++ b/templates/markdown/.partials/events.md @@ -3,9 +3,9 @@ ### Events a client can receive: {{#each asyncapi.events.receive as |event index|}} {{#if event.x-title}} -#### {{event.x-title}} {{#if message.deprecated}} (**deprecated**){{/if}} +#### {{event.x-title}} {{#if event.deprecated}} (**deprecated**){{/if}} {{else}} -#### Event #{{index}} {{#if message.deprecated}} (**deprecated**){{/if}} +#### Event #{{index}} {{#if event.deprecated}} (**deprecated**){{/if}} {{/if}} {{> message message=event hideTitle=true}} {{/each}} @@ -13,9 +13,9 @@ ### Events a client can send: {{#each asyncapi.events.send as |event index|}} {{#if event.x-title}} -#### {{event.x-title}} {{#if message.deprecated}} (**deprecated**){{/if}} +#### {{event.x-title}} {{#if event.deprecated}} (**deprecated**){{/if}} {{else}} -#### Event #{{index}} {{#if message.deprecated}} (**deprecated**){{/if}} +#### Event #{{index}} {{#if event.deprecated}} (**deprecated**){{/if}} {{/if}} {{> message message=event hideTitle=true}} {{/each}}