Fix custom CSS file not being used if the custom editor CSS is empty

This commit is contained in:
Samuel Elliott 2018-04-08 00:07:23 +01:00
parent 5c755bc121
commit f0a337e0ed
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ export default new class {
if (sendSource)
this.sendToEditor('set-scss', scss);
if (!scss) {
if (!scss && !await this.fileExists()) {
this._scss = this.css = '';
this.sendToEditor('scss-error', null);
return;