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