From 6b08647403fb7db23ef8c3587375ef6ea8d1b681 Mon Sep 17 00:00:00 2001 From: Corinne Krych Date: Wed, 14 Mar 2018 09:43:58 +0100 Subject: [PATCH] fix(archive): do not disaply add strategy in read-only mode --- frontend/src/component/feature/form/strategies-section.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/feature/form/strategies-section.jsx b/frontend/src/component/feature/form/strategies-section.jsx index 6a2a305098..ed3c24605b 100644 --- a/frontend/src/component/feature/form/strategies-section.jsx +++ b/frontend/src/component/feature/form/strategies-section.jsx @@ -25,7 +25,11 @@ class StrategiesSectionComponent extends React.Component { return (
- } /> + {this.props.addStrategy ? ( + } /> + ) : ( + + )}
);