tsc corrections
This commit is contained in:
@@ -175,13 +175,6 @@ export class UmbBlockGridEntryElement extends UmbLitElement implements UmbProper
|
||||
},
|
||||
null,
|
||||
);
|
||||
this.observe(
|
||||
this.#context.isValidBlockType,
|
||||
(valid) => {
|
||||
this._invalidBlockType = valid;
|
||||
},
|
||||
null,
|
||||
);
|
||||
// TODO: Implement index.
|
||||
this.observe(
|
||||
this.#context.label,
|
||||
|
||||
@@ -410,8 +410,10 @@ export class UmbBlockGridEntriesContext
|
||||
return this._catalogueRouteBuilderState.getValue()?.({ view: 'clipboard', index: index });
|
||||
}
|
||||
|
||||
blockTypeOf(contentTypeKey: string) {
|
||||
return this.#allowedBlockTypes.getValue().find((x) => x.contentElementTypeKey === contentTypeKey);
|
||||
override blockTypeOf(contentTypeKey: string) {
|
||||
return this.#allowedBlockTypes.asObservablePart((types) =>
|
||||
types.find((x) => x.contentElementTypeKey === contentTypeKey),
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user