Skip to content

Commit 0c948b3

Browse files
author
tingfuyeh
committed
fix: 同样也检查yaml格式的文件
1 parent f3a8371 commit 0c948b3

File tree

1 file changed

+1
-1
lines changed
  • web/src/polaris/configuration/fileGroup/detail/file

1 file changed

+1
-1
lines changed

web/src/polaris/configuration/fileGroup/detail/file/PageDuck.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export default class PageDuck extends Base {
305305
const currentNode = selectors.currentNode(yield select())
306306
const { editContent: content } = selector(yield select())
307307
const { format } = currentNode
308-
if (format === FileFormat.YAML) {
308+
if (format === FileFormat.YAML || format === 'yaml') {
309309
try {
310310
jsYaml.load(content)
311311
} catch (e) {

0 commit comments

Comments
 (0)