From 792a0a96c6416f715f800f35339e59efe7583cc1 Mon Sep 17 00:00:00 2001 From: Bogdan Kostov Date: Tue, 12 Dec 2023 17:01:33 +0100 Subject: [PATCH] [#41] Move condition to render form in Record to RecordForm component. --- js/components/record/Record.js | 2 +- js/components/record/RecordForm.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/components/record/Record.js b/js/components/record/Record.js index 9cc5ec1b..6ec3ac62 100644 --- a/js/components/record/Record.js +++ b/js/components/record/Record.js @@ -64,7 +64,7 @@ class Record extends React.Component { {this._showInstitution() && this._renderInstitution()} - {record.formTemplate && this._renderForm()} + {this._renderForm()} {this._renderButtons()} {showAlert && recordSaved.status === ACTION_STATUS.ERROR &&
diff --git a/js/components/record/RecordForm.js b/js/components/record/RecordForm.js index a05ec9d6..4e63b7f3 100644 --- a/js/components/record/RecordForm.js +++ b/js/components/record/RecordForm.js @@ -125,7 +125,7 @@ class RecordForm extends React.Component { return ; } - return