Commit a9e60e39 authored by chris's avatar chris
Browse files

get schema

parent db253fce
......@@ -31,10 +31,9 @@ const serializer = schema => {
};
};
let schema;
const createApplication = props => {
const application = Application.create(props);
schema = application.getSchema();
application.getSchema();
application.bootServices();
return application;
};
......@@ -69,7 +68,7 @@ const Wax = props => {
if (!application) return null;
const WaxOnchange = onChange ? onChange : value => true;
const { schema } = application.schema;
const editorContent = value || '';
finalPlugins = defaultPlugins.concat([
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment