Add type to parent if missing

This commit is contained in:
Christian Cueni 2021-11-16 11:55:04 +01:00
parent 36932baa89
commit b0aed1ca74
2 changed files with 5 additions and 1 deletions

View File

@ -92,6 +92,10 @@ export default {
methods: {
addNote(id) {
if (!this.parent.hasOwnProperty('__typename')) {
this.parent.__typename = 'ContentBlockNode';
}
this.$store.dispatch('addNote', {
content: id,
type: this.parent.__typename,