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
This commit is contained in:
Scott Anderson
2025-06-24 18:06:13 -04:00
committed by GitHub
parent 0e3ccdd96f
commit 325a99c5d7
+1 -2
View File
@@ -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()}
<o-modal