diff --git a/packages/platform-sdk-generator/src/model/Model.ts b/packages/platform-sdk-generator/src/model/Model.ts index 3591ea0b8..4a924a1d0 100644 --- a/packages/platform-sdk-generator/src/model/Model.ts +++ b/packages/platform-sdk-generator/src/model/Model.ts @@ -175,7 +175,7 @@ export class Model { } #addComponent(c: ir.Component) { - const nsName = (c.namespace === undefined || c.namespace === "Core") + const nsName = (c.namespace == null || c.namespace === "Core") ? "" : c.namespace; const ns = this.#namespaces.get(nsName);