Skip to content

Commit

Permalink
fix(Message): wrong type definition for messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ayZagen committed May 4, 2020
1 parent 77d8d16 commit 8e48256
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/components/PMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function generateMessageVNode(message: string): VNode{
)
}

function generateMessageDiv(messages: any): VNode | VNode[] | undefined {
function generateMessages(messages: any): VNode | VNode[] | undefined {
if(!messages){
return undefined
}
Expand All @@ -35,7 +35,7 @@ export default defineComponent({
mixins: [Colorable],
props: {
...Colorable.props,
value: { type: String || Array as any },
value: { type: [String, Array], default: null },
},
render(){
return h(
Expand All @@ -45,7 +45,7 @@ export default defineComponent({
'pa__messages': true
}
}),
generateMessageDiv(this.value)
generateMessages(this.value)
)
}
})

0 comments on commit 8e48256

Please sign in to comment.