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:
parent
3d5c32c354
commit
5a1a47b7aa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user