From 1dcf155dbe89b472adcaf6add264c7d6368de568 Mon Sep 17 00:00:00 2001 From: Bryant Park Date: Tue, 23 Jul 2024 15:16:25 -0400 Subject: [PATCH] Change undefined check to null check --- packages/platform-sdk-generator/src/model/Model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);