fix: fix bug on paste when using code blocks

This commit is contained in:
Philipp Kühn 2021-10-12 14:31:22 +02:00
parent d3641b88e0
commit d60fe350d1

View File

@ -156,7 +156,7 @@ export const CodeBlock = Node.create<CodeBlockOptions>({
const vscodeData = vscode
? JSON.parse(vscode)
: undefined
const language = vscodeData.mode
const language = vscodeData?.mode
if (!text || !language) {
return false