can be destroyed multiple times

This commit is contained in:
Niels Lyngsø
2024-11-05 16:28:59 +01:00
parent 171ea8422d
commit b835d94a24

View File

@@ -215,7 +215,8 @@ export abstract class UmbElementPropertyDatasetContext<
override destroy() {
super.destroy();
this.#propertyVariantIdMap.destroy();
this.#propertyVariantIdMap?.destroy();
(this.#propertyVariantIdMap as unknown) = undefined;
}
}