1
0
Fork 0
mirror of synced 2024-06-27 18:40:42 +12:00

Merge branch 'plugins-dev-experience' of github.com:Budibase/budibase into plugins-dev-experience

This commit is contained in:
mike12345567 2022-09-02 20:00:35 +01:00
commit 060da226cb
3 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@
{#if $selectedComponent}
{#key $selectedComponent._id}
<Panel {title} icon={componentDefinition.icon} borderLeft>
<Panel {title} icon={componentDefinition?.icon} borderLeft>
<ComponentSettingsSection
{componentInstance}
{componentDefinition}

View file

@ -144,7 +144,7 @@ const createComponentStore = () => {
if (!Component || !schema?.schema?.name) {
return
}
const component = `plugin/${schema.schema.name}/${version}`
const component = `plugin/${schema.schema.name}`
store.update(state => {
state.customComponentManifest[component] = {
Component,

View file

@ -46,7 +46,7 @@ exports.fetchAppComponentDefinitions = async function (ctx) {
.map(row => row.doc)
.filter(plugin => plugin.schema.type === "component")
.forEach(plugin => {
const fullComponentName = `plugin/${plugin.name}/${plugin.version}`
const fullComponentName = `plugin/${plugin.name}`
definitions[fullComponentName] = {
component: fullComponentName,
...plugin.schema.schema,