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:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user