Fix custom CSS file not being used if the custom editor CSS is empty
This commit is contained in:
parent
5c755bc121
commit
f0a337e0ed
|
@ -75,7 +75,7 @@ export default new class {
|
||||||
if (sendSource)
|
if (sendSource)
|
||||||
this.sendToEditor('set-scss', scss);
|
this.sendToEditor('set-scss', scss);
|
||||||
|
|
||||||
if (!scss) {
|
if (!scss && !await this.fileExists()) {
|
||||||
this._scss = this.css = '';
|
this._scss = this.css = '';
|
||||||
this.sendToEditor('scss-error', null);
|
this.sendToEditor('scss-error', null);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue