Skip to content

Commit c4a3c1c

Browse files
committed
For consistency we are not injecting the store instance
1 parent 1975b7a commit c4a3c1c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Frontend/src/components/failedmessages/messageGroupClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export interface ErrorResponse {
99

1010
export class MessageGroupClient {
1111
serviceControlStore: ServiceControlStore;
12-
constructor(store?: ServiceControlStore) {
12+
constructor() {
1313
//this module is only called from within view setup or other pinia stores, so this call is lifecycle safe
14-
this.serviceControlStore = store ?? useServiceControlStore();
14+
this.serviceControlStore = useServiceControlStore();
1515
}
1616

1717
public async getExceptionGroups(classifier: string = "") {

src/Frontend/src/stores/DeletedMessageGroupsStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const useDeletedMessageGroupsStore = defineStore("DeletedMessageGroupsSto
3232
let undismissedRestoreGroups: ExtendedFailureGroupView[] = [];
3333

3434
const serviceControlStore = useServiceControlStore();
35-
const messageGroupClient = new MessageGroupClient(serviceControlStore);
35+
const messageGroupClient = new MessageGroupClient();
3636

3737
const cookies = useCookies();
3838

0 commit comments

Comments
 (0)