From fadd0574ac06be57ae0f74e19cb7942273e07a54 Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Thu, 15 Feb 2018 19:27:44 +0000 Subject: [PATCH] Fixed clearing compiler error when empty --- client/src/modules/csseditor.js | 2 +- core/src/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/modules/csseditor.js b/client/src/modules/csseditor.js index f462a945..a72a1cc0 100644 --- a/client/src/modules/csseditor.js +++ b/client/src/modules/csseditor.js @@ -49,7 +49,7 @@ export default class { if (!scss) { this._scss = this.css = ''; - this.sendToEditor('scss-editor', null); + this.sendToEditor('scss-error', null); return Promise.resolve(); } diff --git a/core/src/main.js b/core/src/main.js index cda11dff..f24e0bb3 100644 --- a/core/src/main.js +++ b/core/src/main.js @@ -73,7 +73,7 @@ class Comms { }); BDIpc.on('bd-compileSass', o => { - if (!o.args.path && !o.args.data) o.reply(''); + if (!o.args.path && !o.args.data) return o.reply(''); if (typeof o.args.path === 'string' && typeof o.args.data === 'string') { o.args.data = `${o.args.data} @import '${o.args.path}';`; o.args.path = undefined;