From 5a1a47b7aa25e5fc972f0f4538e3e3e39750d142 Mon Sep 17 00:00:00 2001 From: mabashian Date: Wed, 22 Jan 2020 11:24:50 -0500 Subject: [PATCH] Default '---' not needed due to changes to how the prop is passed to CodeMirrorInput --- awx/ui_next/src/components/CodeMirrorInput/VariablesDetail.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui_next/src/components/CodeMirrorInput/VariablesDetail.jsx b/awx/ui_next/src/components/CodeMirrorInput/VariablesDetail.jsx index 2dae4512d5..83533f1168 100644 --- a/awx/ui_next/src/components/CodeMirrorInput/VariablesDetail.jsx +++ b/awx/ui_next/src/components/CodeMirrorInput/VariablesDetail.jsx @@ -21,7 +21,7 @@ function getValueAsMode(value, mode) { return mode === YAML_MODE ? jsonToYaml(value) : yamlToJson(value); } -function VariablesDetail({ value = '---', label, rows }) { +function VariablesDetail({ value, label, rows }) { const [mode, setMode] = useState(isJson(value) ? JSON_MODE : YAML_MODE); const [currentValue, setCurrentValue] = useState(value || '---'); const [error, setError] = useState(null);