1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 20:42:40 +00:00

Catching a few more bugs

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-03-15 16:49:03 -07:00
parent 3d10c98f1c
commit 2aea19bd05
5 changed files with 22 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
const path = require('path');
const { groupBy, keyBy, filter, find, get, memoize } = require('lodash');
const { groupBy, keyBy, filter, find, memoize } = require('lodash');
const { kind, KIND } = require('./resolve');
const File = require('./file');
const Asset = require('./asset');
@@ -22,7 +22,7 @@ module.exports = exports = class Files {
this.assets = assets || [];
this._getTitlecard = memoize(() =>
find(assets, { name: 'titlecard', dir: this.base })
find(assets, { name: 'titlecard', dir: this.base }),
);
this._getWebReady = memoize(() => assets && keyBy(assets.map((a) => a.webready()), 'name'));