diff --git a/core/core-frontend/src/custom-component/component-list.ts b/core/core-frontend/src/custom-component/component-list.ts index 637af13618..1b7393b4b9 100644 --- a/core/core-frontend/src/custom-component/component-list.ts +++ b/core/core-frontend/src/custom-component/component-list.ts @@ -712,9 +712,9 @@ export function findNewComponentFromList( newComponent.name = viewConfig?.title newComponent.label = viewConfig?.title newComponent.render = viewConfig?.render - newComponent.isPlugin = !!isPlugin + newComponent.isPlugin = !!isPlugin || !!viewConfig?.isPlugin if (isPlugin) { - newComponent.staticMap = staticMap + newComponent.staticMap = staticMap || viewConfig?.staticMap } } return newComponent diff --git a/core/core-frontend/src/utils/canvasUtils.ts b/core/core-frontend/src/utils/canvasUtils.ts index c17eb0d09b..4a43b8133e 100644 --- a/core/core-frontend/src/utils/canvasUtils.ts +++ b/core/core-frontend/src/utils/canvasUtils.ts @@ -114,9 +114,9 @@ export function findNewComponent(componentName, innerType, staticMap?) { newComponent.name = viewConfig?.title newComponent.label = viewConfig?.title newComponent.render = viewConfig?.render - newComponent.isPlugin = !!staticMap + newComponent.isPlugin = !!staticMap || !!viewConfig?.isPlugin if (newComponent.isPlugin) { - newComponent.staticMap = staticMap + newComponent.staticMap = staticMap || viewConfig?.staticMap } } else if (['DeDecoration', 'DynamicBackground'].includes(componentName)) { newComponent.style.borderWidth = 0