Fixed breaking api change (#9170)

This commit is contained in:
Keith Holliday
2017-10-06 16:06:48 -05:00
committed by GitHub
parent 81d3e8a68f
commit a7c9355dd5
2 changed files with 11 additions and 7 deletions

View File

@@ -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;
}

View File

@@ -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: [