From d2b7f75cfda05468328f99328c8421a253d06dce Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Thu, 1 Feb 2018 17:16:54 -0500 Subject: [PATCH] fixes #475 (#512) --- client/modules/IDE/components/PreviewFrame.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/modules/IDE/components/PreviewFrame.jsx b/client/modules/IDE/components/PreviewFrame.jsx index 2283aa70..bf3313b4 100644 --- a/client/modules/IDE/components/PreviewFrame.jsx +++ b/client/modules/IDE/components/PreviewFrame.jsx @@ -168,7 +168,7 @@ class PreviewFrame extends React.Component { // or loops. JSHINT(newContent); - if (!JSHINT.errors) { + if (JSHINT.errors.length === 0) { newContent = decomment(newContent, { ignore: /noprotect/g, space: true