From b58cbf2bf7fe01e413dd5d0f732c444533b3c4ca Mon Sep 17 00:00:00 2001 From: Marc Rabat Date: Fri, 9 Jul 2021 14:23:14 +0200 Subject: [PATCH] fix(react): allow carousel elements without buttons --- packages/botonic-react/src/experimental/msg-to-botonic.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/botonic-react/src/experimental/msg-to-botonic.jsx b/packages/botonic-react/src/experimental/msg-to-botonic.jsx index 783f3f6449..9cbbd2d555 100644 --- a/packages/botonic-react/src/experimental/msg-to-botonic.jsx +++ b/packages/botonic-react/src/experimental/msg-to-botonic.jsx @@ -109,7 +109,7 @@ function elementsParse(elements) { {e.title} {e.subtitle} - {buttonsParse(e.buttons)} + {e.buttons && buttonsParse(e.buttons)} )) }