Skip to content

Commit bc0824d

Browse files
committed
🚨(frontend) fix linter warning react-query
React-query change the types of some methods, which causes linter warnings. This commit updates the affected methods to match the new types.
1 parent fa653c6 commit bc0824d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/frontend/apps/impress/src/features/docs/doc-management/api/useRemoveDoc.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ export const useRemoveDoc = (options?: UseRemoveDocOptions) => {
3434
queryKey: [KEY_LIST_DOC],
3535
});
3636
if (options?.onSuccess) {
37-
options.onSuccess(data, variables, context);
37+
void options.onSuccess(data, variables, context);
3838
}
3939
},
4040
onError: (error, variables, context) => {
4141
if (options?.onError) {
42-
options.onError(error, variables, context);
42+
void options.onError(error, variables, context);
4343
}
4444
},
4545
});

src/frontend/apps/impress/src/features/docs/doc-share/api/useDeleteDocAccess.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ export const useDeleteDocAccess = (options?: UseDeleteDocAccessOptions) => {
6363
queryKey: [KEY_LIST_USER],
6464
});
6565
if (options?.onSuccess) {
66-
options.onSuccess(data, variables, context);
66+
void options.onSuccess(data, variables, context);
6767
}
6868
},
6969
onError: (error, variables, context) => {
7070
if (options?.onError) {
71-
options.onError(error, variables, context);
71+
void options.onError(error, variables, context);
7272
}
7373
},
7474
});

src/frontend/apps/impress/src/features/docs/doc-share/api/useDeleteDocInvitation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ export const useDeleteDocInvitation = (
5858
queryKey: [KEY_LIST_DOC_INVITATIONS],
5959
});
6060
if (options?.onSuccess) {
61-
options.onSuccess(data, variables, context);
61+
void options.onSuccess(data, variables, context);
6262
}
6363
},
6464
onError: (error, variables, context) => {
6565
if (options?.onError) {
66-
options.onError(error, variables, context);
66+
void options.onError(error, variables, context);
6767
}
6868
},
6969
});

src/frontend/apps/impress/src/features/docs/doc-share/api/useUpdateDocAccess.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ export const useUpdateDocAccess = (options?: UseUpdateDocAccessOptions) => {
6565
queryKey: [KEY_LIST_DOC],
6666
});
6767
if (options?.onSuccess) {
68-
options.onSuccess(data, variables, context);
68+
void options.onSuccess(data, variables, context);
6969
}
7070
},
7171
onError: (error, variables, context) => {
7272
if (options?.onError) {
73-
options.onError(error, variables, context);
73+
void options.onError(error, variables, context);
7474
}
7575
},
7676
});

src/frontend/apps/impress/src/features/docs/doc-share/api/useUpdateDocInvitation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ export const useUpdateDocInvitation = (
6666
queryKey: [KEY_LIST_DOC_INVITATIONS],
6767
});
6868
if (options?.onSuccess) {
69-
options.onSuccess(data, variables, context);
69+
void options.onSuccess(data, variables, context);
7070
}
7171
},
7272
onError: (error, variables, context) => {
7373
if (options?.onError) {
74-
options.onError(error, variables, context);
74+
void options.onError(error, variables, context);
7575
}
7676
},
7777
});

0 commit comments

Comments
 (0)