From 8609d7d12ffeeb26d79457607c616cef166aab02 Mon Sep 17 00:00:00 2001 From: yazhou Date: Thu, 7 Sep 2023 10:38:34 +0800 Subject: [PATCH] fix: fix pipeline shell params Signed-off-by: yazhou --- src/components/Base/CodeEditor/index.jsx | 3 +-- .../components/Pipeline/StepModals/params.jsx | 21 ++++++++++++------- 2 files changed, 14 insertions(+), 10 deletions(-) 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 (