diff --git a/packages/client/src/stores/components.js b/packages/client/src/stores/components.js index 90a0c903f2..f12f26ecfb 100644 --- a/packages/client/src/stores/components.js +++ b/packages/client/src/stores/components.js @@ -140,16 +140,11 @@ const createComponentStore = () => { return customComponentManifest?.[type]?.Component } - const registerCustomComponent = ({ Component, schema }) => { - if (!Component || !schema?.schema?.name) { + const registerCustomComponent = ({ Component, schema, version }) => { + if (!Component || !schema?.schema?.name || !version) { return } - console.log(schema) - console.log("register", schema.schema.name) - const component = `plugin/${schema.schema.name}/${ - schema.schema.version || "2.0.5" - }` - console.log(component) + const component = `plugin/${schema.schema.name}/${version}` store.update(state => { state.customComponentManifest[component] = { Component,