mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 14:27:42 -02:30
Default '---' not needed due to changes to how the prop is passed to CodeMirrorInput
This commit is contained in:
@@ -21,7 +21,7 @@ function getValueAsMode(value, mode) {
|
|||||||
return mode === YAML_MODE ? jsonToYaml(value) : yamlToJson(value);
|
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 [mode, setMode] = useState(isJson(value) ? JSON_MODE : YAML_MODE);
|
||||||
const [currentValue, setCurrentValue] = useState(value || '---');
|
const [currentValue, setCurrentValue] = useState(value || '---');
|
||||||
const [error, setError] = useState(null);
|
const [error, setError] = useState(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user