1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Default '---' not needed due to changes to how the prop is passed to CodeMirrorInput

This commit is contained in:
mabashian 2020-01-22 11:24:50 -05:00
parent 3d5c32c354
commit 5a1a47b7aa

View File

@ -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);