diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index 505ad3a149..0fccc52dc1 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -4351,7 +4351,7 @@ export default defineComponent({ } }, async onPostMessageReceived(message: MessageEvent) { - if (!message?.data?.includes?.('"command"')) { + if (!message || typeof message.data !== 'string' || !message.data?.includes?.('"command"')) { return; } try {