From 9582e20cd7dbe0a70baeb2d44f19b2a7a39be2ce Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Fri, 26 Oct 2018 12:29:46 +0530 Subject: [PATCH] Fix the preview button in the new template form --- frontend/my/src/Templates.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/my/src/Templates.js b/frontend/my/src/Templates.js index b1cec48..0b680ea 100644 --- a/frontend/my/src/Templates.js +++ b/frontend/my/src/Templates.js @@ -93,11 +93,13 @@ class CreateFormDef extends React.PureComponent { )} - - - + { this.props.form.getFieldValue("body") !== "" && + + + + } @@ -111,7 +113,7 @@ class CreateFormDef extends React.PureComponent { { this.state.previewBody && { this.setState({ previewBody: null, previewName: null })