Skip to content

Commit

Permalink
fix: fix bug on paste when using code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed Oct 12, 2021
1 parent d3641b8 commit d60fe35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension-code-block/src/code-block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d60fe35

Please sign in to comment.