diff --git a/src/components/Base/CodeEditor/index.jsx b/src/components/Base/CodeEditor/index.jsx index 4e071a0dfe4..b7907338061 100644 --- a/src/components/Base/CodeEditor/index.jsx +++ b/src/components/Base/CodeEditor/index.jsx @@ -41,7 +41,7 @@ class CodeEditor extends PureComponent { } static defaultProps = { - value: {}, + value: '', mode: 'yaml', options: {}, onChange() {}, @@ -49,7 +49,6 @@ class CodeEditor extends PureComponent { render() { const { className, mode, options, value, onChange } = this.props - return ( }> { const val = arg.value.value @@ -305,14 +308,16 @@ export default class Params extends React.Component { ) case 'code': return ( - + + + ) case 'bool': return (