mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Fixed breaking api change (#9170)
This commit is contained in:
@@ -624,8 +624,12 @@ forOwn(backgrounds, function prefillBackgroundSet (backgroundsInSet, set) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = {
|
export default backgrounds;
|
||||||
tree: backgrounds,
|
|
||||||
flat,
|
|
||||||
};
|
|
||||||
|
|
||||||
|
export function backgroundsTree () {
|
||||||
|
return backgrounds;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function backgroundsFlat () {
|
||||||
|
return flat;
|
||||||
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import {
|
|||||||
} from './quests';
|
} from './quests';
|
||||||
|
|
||||||
import appearances from './appearance';
|
import appearances from './appearance';
|
||||||
import backgrounds from './appearance/backgrounds';
|
import {backgroundsTree, backgroundsFlat} from './appearance/backgrounds';
|
||||||
import spells from './spells';
|
import spells from './spells';
|
||||||
import subscriptionBlocks from './subscriptionBlocks';
|
import subscriptionBlocks from './subscriptionBlocks';
|
||||||
import faq from './faq';
|
import faq from './faq';
|
||||||
@@ -540,8 +540,8 @@ each(api.food, (food, key) => {
|
|||||||
|
|
||||||
api.appearances = appearances;
|
api.appearances = appearances;
|
||||||
|
|
||||||
api.backgrounds = backgrounds.tree;
|
api.backgrounds = backgroundsTree();
|
||||||
api.backgroundsFlat = backgrounds.flat;
|
api.backgroundsFlat = backgroundsFlat();
|
||||||
|
|
||||||
api.userDefaults = {
|
api.userDefaults = {
|
||||||
habits: [
|
habits: [
|
||||||
|
|||||||
Reference in New Issue
Block a user