Skip to content

Commit

Permalink
Merge pull request #6 from kikuomax/unwrap-field-body-text
Browse files Browse the repository at this point in the history
  • Loading branch information
wesdevpro committed Jul 21, 2023
2 parents 67ecf3a + 304a494 commit a7923de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/field/FieldBody.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import { Comment, Fragment, h as createElement, resolveComponent } from 'vue'
import { Comment, Fragment, Text, h as createElement, resolveComponent } from 'vue'
export default {
name: 'BFieldBody',
Expand All @@ -26,7 +26,7 @@ export default {
default: () => {
return children.map((element) => {
// skip returns(?) and comments
if (element.type === Comment) {
if (element.type === Comment || element.type === Text) {
return element
}
let message
Expand All @@ -40,7 +40,7 @@ export default {
type: this.type,
message
},
[element]
() => element
)
})
}
Expand Down

0 comments on commit a7923de

Please sign in to comment.