Skip to content

Commit

Permalink
amend issues, push for live
Browse files Browse the repository at this point in the history
  • Loading branch information
edencoder committed Oct 23, 2020
1 parent 5849864 commit 93ced80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bundles/asset/models/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class File extends Model {
*/
url() {
// Return asset transport url
return this.transport().url(this);
return this.transport() ? this.transport().url(this) : null;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion bundles/asset/models/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class Image extends File {
// Get url for thumbs
for (const thumb of Object.values(sanitised.thumbs)) {
// Set thumb url
thumb.url = await this.transport().url(this, (thumb.name || thumb.label));
thumb.url = this.transport() ? await this.transport().url(this, (thumb.name || thumb.label)) : null;

// delete meta
delete thumb.meta;
Expand Down
3 changes: 3 additions & 0 deletions bundles/asset/tasks/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class AssetsTask {

// reload js
this.cli.emit('scss', 'reload');

// return success
return `assets linked!`;
}

/**
Expand Down

0 comments on commit 93ced80

Please sign in to comment.