budibase/packages/server/utilities/constructHierarchy.js

6 lines
244 B
JavaScript
Raw Normal View History

2019-09-10 07:14:45 +02:00
const {getTemplateApi} = require("@budibase/core");
2019-06-28 23:59:27 +02:00
const templateApi = getTemplateApi({});
module.exports = (appDefinition) => {
appDefinition.hierarchy = templateApi.constructHierarchy(appDefinition.hierarchy);
return appDefinition;
}