File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+ import jsyaml from 'js-yaml' ;
16
17
import React , { useState } from 'react' ;
17
18
import { Elements , FlowElement } from 'react-flow-renderer' ;
18
19
import { ApiPipeline , ApiPipelineVersion } from 'src/apis/pipeline' ;
@@ -26,7 +27,6 @@ import { isSafari } from 'src/lib/Utils';
26
27
import { PipelineFlowElement } from 'src/lib/v2/StaticFlow' ;
27
28
import { commonCss , padding } from '../Css' ;
28
29
import DagCanvas from './v2/DagCanvas' ;
29
- import jsyaml from 'js-yaml' ;
30
30
31
31
const TAB_NAMES = [ 'Graph' , 'Pipeline Spec' ] ;
32
32
@@ -126,7 +126,7 @@ function PipelineDetailsV2({
126
126
value = { jsyaml . safeDump ( jsyaml . safeLoad ( templateString || '' ) ) } // Use safeLoad and then safeDump to make sure the Pipeline Spec is in Yaml Form.
127
127
height = { editorHeightWidth }
128
128
width = { editorHeightWidth }
129
- mode = 'json '
129
+ mode = 'yaml '
130
130
theme = 'github'
131
131
editorProps = { { $blockScrolling : true } }
132
132
readOnly = { true }
You can’t perform that action at this time.
0 commit comments