mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 10:24:16 +00:00
fixed
This commit is contained in:
@@ -332,10 +332,17 @@ export class TerritoryPatternsModal extends LitElement {
|
||||
}
|
||||
|
||||
private setLockedPatterns(lockedPatterns: string[], reason: string) {
|
||||
this.lockedPatterns.push(...lockedPatterns);
|
||||
for (const key of lockedPatterns) {
|
||||
this.lockedReasons[key] = reason;
|
||||
}
|
||||
this.lockedPatterns = [...this.lockedPatterns, ...lockedPatterns];
|
||||
this.lockedReasons = {
|
||||
...this.lockedReasons,
|
||||
...lockedPatterns.reduce(
|
||||
(acc, key) => {
|
||||
acc[key] = reason;
|
||||
return acc;
|
||||
},
|
||||
{} as Record<string, string>,
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
private resetLockedPatterns() {
|
||||
|
||||
Reference in New Issue
Block a user