Skip to content

Commit

Permalink
Fix potential immutability issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMDoerner committed Jan 19, 2025
1 parent e29ed58 commit 587f9e2
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class CharacterUpdatePageComponent {
} as Partial<CharacterRaw>;
case 'UPDATE':
case 'OUTDATED_UPDATE':
return this.store.character();
return { ...this.store.character() };
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class CreatureUpdateCreateComponent {
} as Partial<CreatureRaw>;
case 'UPDATE':
case 'OUTDATED_UPDATE':
return this.store.creature();
return { ...this.store.creature() };
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class ItemCreateUpdatePageComponent {
} as Partial<ItemRaw>;
case 'UPDATE':
case 'OUTDATED_UPDATE':
return this.store.item();
return { ...this.store.item() };
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class MapCreateUpdatePageComponent {
} as Partial<MapRaw>;
case 'UPDATE':
case 'OUTDATED_UPDATE':
return this.store.map();
return { ...this.store.map() };
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class MarkerCreateUpdatePageComponent {
} as Partial<MapMarkerRaw>;
case 'UPDATE':
case 'OUTDATED_UPDATE':
return this.store.marker();
return { ...this.store.marker() };
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class OrganizationCreateUpdatePageComponent {
} as Partial<OrganizationRaw>;
case 'UPDATE':
case 'OUTDATED_UPDATE':
return this.store.organization();
return { ...this.store.organization() };
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class QuestCreateUpdatePageComponent {
} as Partial<QuestRaw>;
case 'UPDATE':
case 'OUTDATED_UPDATE':
return this.store.quest();
return { ...this.store.quest() };
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class SessionaudioCreateUpdatePageComponent {
} as Partial<SessionAudioRaw>;
case 'UPDATE':
case 'OUTDATED_UPDATE':
return this.store.sessionaudio();
return { ...this.store.sessionaudio() };
}
});

Expand Down

0 comments on commit 587f9e2

Please sign in to comment.