reset for block data manager

This commit is contained in:
Niels Lyngsø
2024-07-04 20:00:42 +02:00
parent 5924b08834
commit fe705c2f57

View File

@@ -31,6 +31,10 @@ export class UmbBlockElementManager extends UmbControllerBase {
this.observe(this.contentTypeId, (id) => this.structure.loadType(id));
}
reset() {
this.#data.setValue(undefined);
}
setData(data: UmbBlockDataType | undefined) {
this.#data.setValue(data);
this.#getDataResolver();