From bd5076b0e322ef65e4c8c24b1c1c57bbeebb5163 Mon Sep 17 00:00:00 2001 From: "Jocelyn Badgley (Twipped)" Date: Fri, 6 Mar 2020 19:31:35 -0800 Subject: [PATCH] Fixing titlecard finding --- build/files.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/files.js b/build/files.js index a5d20a9..d9f4918 100644 --- a/build/files.js +++ b/build/files.js @@ -22,7 +22,7 @@ module.exports = exports = class Files { this.assets = assets || []; this._getTitlecard = memoize(() => - get(find(this.files, { name: 'titlecard', dir: this.base }), [ 0, 'url' ]), + find(assets, { name: 'titlecard', dir: this.base }) ); this._getWebReady = memoize(() => assets && keyBy(assets.map((a) => a.webready()), 'name')); @@ -35,7 +35,8 @@ module.exports = exports = class Files { } get titlecard () { - return this._getTitlecard(); + const t = this._getTitlecard(); + return t && t.url; } get webready () {