From 1b498ca5facb9b8643cd25058ca1be6f73639d27 Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Mon, 12 Jan 2026 18:30:58 +0000 Subject: [PATCH] refactor: Improve fallback comment for tenant ID retrieval in ModelAPI --- Common/UI/Utils/ModelAPI/ModelAPI.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Common/UI/Utils/ModelAPI/ModelAPI.ts b/Common/UI/Utils/ModelAPI/ModelAPI.ts index 4df3cb4ef3..c923ecb876 100644 --- a/Common/UI/Utils/ModelAPI/ModelAPI.ts +++ b/Common/UI/Utils/ModelAPI/ModelAPI.ts @@ -334,9 +334,11 @@ export default class ModelAPI { if (project && project.id) { headers["tenantid"] = project.id.toString(); } else { - // Fallback to getCurrentProjectId() when full project data is not yet loaded - // This can happen after SSO login when the project ID is available in URL/SessionStorage - // but the full project data hasn't been fetched yet + /* + * Fallback to getCurrentProjectId() when full project data is not yet loaded + * This can happen after SSO login when the project ID is available in URL/SessionStorage + * but the full project data hasn't been fetched yet + */ const projectId: ObjectID | null = ProjectUtil.getCurrentProjectId(); if (projectId) { headers["tenantid"] = projectId.toString();