From 96471d4de4a3e7312fb8e1ad65e7a6543017567f Mon Sep 17 00:00:00 2001 From: Benjamin Atkin Date: Sat, 5 Jun 2021 20:05:43 -0600 Subject: [PATCH] wip --- app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 26d655a..180004f 100644 --- a/app.js +++ b/app.js @@ -60,9 +60,9 @@ function readMarkdown(md) { css: codeBlocks.filter((block) => block.lang === "css"), } const code = { - html: blocks.html.length === 1 ? blocks.html[0].value, - js: blocks.html.length === 1 ? blocks.js[0].value, - css: blocks.html.length === 1 ? blocks.css[0].value, + html: blocks.html.length === 1 ? blocks.html[0].value : undefined, + js: blocks.html.length === 1 ? blocks.js[0].value : undefined, + css: blocks.html.length === 1 ? blocks.css[0].value : undefined, } }