mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-14 18:28:13 +00:00
fix: handling the undefined variable
This commit is contained in:
parent
95d3cb3497
commit
0efe8b4cb3
@ -46,7 +46,7 @@ export class Transducer {
|
|||||||
setter = setter.componentName;
|
setter = setter.componentName;
|
||||||
}
|
}
|
||||||
if (typeof setter === 'string') {
|
if (typeof setter === 'string') {
|
||||||
setter = getSetter(setter).component;
|
setter = getSetter(setter)?.component;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setterTransducer = combineTransducer(
|
this.setterTransducer = combineTransducer(
|
||||||
|
|||||||
@ -162,7 +162,7 @@ export default class Engine extends PureComponent {
|
|||||||
debug('entry.render');
|
debug('entry.render');
|
||||||
const { componentName } = schema;
|
const { componentName } = schema;
|
||||||
const allComponents = { ...ENGINE_COMPS, ...components };
|
const allComponents = { ...ENGINE_COMPS, ...components };
|
||||||
let Comp = allComponents[componentName];
|
let Comp = allComponents[componentName] || ENGINE_COMPS[`${componentName}Engine`];
|
||||||
if (Comp && Comp.prototype) {
|
if (Comp && Comp.prototype) {
|
||||||
const proto = Comp.prototype;
|
const proto = Comp.prototype;
|
||||||
if (!(Comp.prototype instanceof BaseEngine)) {
|
if (!(Comp.prototype instanceof BaseEngine)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user