Remove further usages of plugin versions
This commit is contained in:
parent
a5f475872d
commit
881024ca60
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
{#if $selectedComponent}
|
{#if $selectedComponent}
|
||||||
{#key $selectedComponent._id}
|
{#key $selectedComponent._id}
|
||||||
<Panel {title} icon={componentDefinition.icon} borderLeft>
|
<Panel {title} icon={componentDefinition?.icon} borderLeft>
|
||||||
<ComponentSettingsSection
|
<ComponentSettingsSection
|
||||||
{componentInstance}
|
{componentInstance}
|
||||||
{componentDefinition}
|
{componentDefinition}
|
||||||
|
|
|
@ -144,7 +144,7 @@ const createComponentStore = () => {
|
||||||
if (!Component || !schema?.schema?.name) {
|
if (!Component || !schema?.schema?.name) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const component = `plugin/${schema.schema.name}/${version}`
|
const component = `plugin/${schema.schema.name}`
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
state.customComponentManifest[component] = {
|
state.customComponentManifest[component] = {
|
||||||
Component,
|
Component,
|
||||||
|
|
|
@ -46,7 +46,7 @@ exports.fetchAppComponentDefinitions = async function (ctx) {
|
||||||
.map(row => row.doc)
|
.map(row => row.doc)
|
||||||
.filter(plugin => plugin.schema.type === "component")
|
.filter(plugin => plugin.schema.type === "component")
|
||||||
.forEach(plugin => {
|
.forEach(plugin => {
|
||||||
const fullComponentName = `plugin/${plugin.name}/${plugin.version}`
|
const fullComponentName = `plugin/${plugin.name}`
|
||||||
definitions[fullComponentName] = {
|
definitions[fullComponentName] = {
|
||||||
component: fullComponentName,
|
component: fullComponentName,
|
||||||
...plugin.schema.schema,
|
...plugin.schema.schema,
|
||||||
|
|
Loading…
Reference in New Issue