From 2dda11ba60588bad432332d367bde809067cad14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 7 May 2019 18:52:46 +0200 Subject: [PATCH] fix a bug in updateComponentProps --- packages/tiptap/src/Utils/ComponentView.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/tiptap/src/Utils/ComponentView.js b/packages/tiptap/src/Utils/ComponentView.js index 1dffed34e..88af52eca 100644 --- a/packages/tiptap/src/Utils/ComponentView.js +++ b/packages/tiptap/src/Utils/ComponentView.js @@ -65,6 +65,10 @@ export default class ComponentView { } updateComponentProps(props) { + if (!this.vm._props) { + return + } + // Update props in component // TODO: Avoid mutating a prop directly. // Maybe there is a better way to do this?