From 325a99c5d77b402cce695c73b1d4fcb17386cc57 Mon Sep 17 00:00:00 2001 From: Scott Anderson <662325+scottanderson@users.noreply.github.com> Date: Tue, 24 Jun 2025 18:06:13 -0400 Subject: [PATCH] Cleanup log spam in TerritoryPatternsModal (#1269) ## Description: Cleanup log spam in TerritoryPatternsModal ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors --- src/client/TerritoryPatternsModal.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/TerritoryPatternsModal.ts b/src/client/TerritoryPatternsModal.ts index a37152895..e02952851 100644 --- a/src/client/TerritoryPatternsModal.ts +++ b/src/client/TerritoryPatternsModal.ts @@ -68,6 +68,7 @@ export class TerritoryPatternsModal extends LitElement { this.flares = flares; } } + this.checkPatternPermission(this.roles); this.requestUpdate(); } @@ -76,7 +77,6 @@ export class TerritoryPatternsModal extends LitElement { for (const key in patterns) { const patternData = patterns[key]; const roleGroup: string[] | string | undefined = patternData.role_group; - console.log(`pattern:${key}`); if ( this.flares.includes("pattern:*") || this.flares.includes(`pattern:${key}`) @@ -237,7 +237,6 @@ export class TerritoryPatternsModal extends LitElement { render() { this.resetLockedPatterns(); - this.checkPatternPermission(this.roles); return html` ${this.renderTooltip()}