Fixed clearing compiler error when empty

This commit is contained in:
Samuel Elliott 2018-02-15 19:27:44 +00:00
parent 01cacb3ef6
commit fadd0574ac
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}

View File

@ -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;