Fixed clearing compiler error when empty
This commit is contained in:
parent
01cacb3ef6
commit
fadd0574ac
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue