Browse Source

new render wrapper - bug fix

master
Michael Shanks 7 years ago
parent
commit
0d027d9567
  1. 6
      packages/client/src/index.js
  2. 5
      packages/client/src/render/renderComponent.js

6
packages/client/src/index.js

@ -35,7 +35,11 @@ export const loadBudibase = async ({
props = appDefinition.props;
}
const _app = createApp(componentLibraries, appDefinition, user, uiFunctions);
const _app = createApp(
componentLibraries,
appDefinition,
user,
uiFunctions || {});
_app.hydrateChildren(
[props],
window.document.body);

5
packages/client/src/render/renderComponent.js

@ -4,7 +4,10 @@ export const renderComponent = ({
htmlElement, anchor, parentContext,
componentProps}) => {
const func = uiFunctions[componentProps._id];
const func = componentProps._id
? uiFunctions[componentProps._id]
: undefined;
let component;
let componentContext;
const render = (context) => {

Loading…
Cancel
Save