From 2b55e7458bf5a5eefb7c7ff328964b5779fee641 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Thu, 26 Feb 2026 19:24:13 +0100 Subject: [PATCH] fix: use window.LogConfig pattern for storeRoles logger createModuleLogger is not available in store context. Use the same window.LogConfig.createLogger pattern as team.js. Co-Authored-By: Claude Opus 4.6 --- app/modules/tenancy/static/store/js/roles.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/modules/tenancy/static/store/js/roles.js b/app/modules/tenancy/static/store/js/roles.js index 123bd7da..17cbe395 100644 --- a/app/modules/tenancy/static/store/js/roles.js +++ b/app/modules/tenancy/static/store/js/roles.js @@ -5,7 +5,9 @@ * Loaded on /store/{store_code}/team/roles. */ -const storeRolesLog = createModuleLogger?.('storeRoles') ?? console; +const storeRolesLog = (window.LogConfig && window.LogConfig.createLogger) + ? window.LogConfig.createLogger('storeRoles', false) + : console; function storeRoles() { storeRolesLog.info('storeRoles() called');