mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix(memoize): enumerate food
This commit is contained in:
@@ -541,13 +541,11 @@ function buildFood () {
|
||||
}
|
||||
|
||||
const memoizedBuildFood = memoize(buildFood);
|
||||
|
||||
Object.defineProperty(api, 'food', {
|
||||
get () { return memoizedBuildFood(); },
|
||||
enumerable: true,
|
||||
});
|
||||
|
||||
api.appearances = appearances;
|
||||
|
||||
api.backgrounds = backgroundsTree();
|
||||
api.backgroundsFlat = backgroundsFlat();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user