add null check

This commit is contained in:
Mads Rasmussen
2024-10-24 23:04:09 +02:00
parent b657b2806b
commit bc5b730eef

View File

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