Fix the delete suggestion button not working and using a deprecated endpoint (#34396)
This commit is contained in:
parent
ebfd48b0f2
commit
d81983f181
2 changed files with 2 additions and 2 deletions
|
@ -5,4 +5,4 @@ export const apiGetSuggestions = (limit: number) =>
|
|||
apiRequestGet<ApiSuggestionJSON[]>('v2/suggestions', { limit });
|
||||
|
||||
export const apiDeleteSuggestion = (accountId: string) =>
|
||||
apiRequestDelete(`v1/suggestions/${accountId}`);
|
||||
apiRequestDelete(`v2/suggestions/${accountId}`);
|
||||
|
|
|
@ -25,7 +25,7 @@ export const Card = ({ id, source }) => {
|
|||
const dispatch = useDispatch();
|
||||
|
||||
const handleDismiss = useCallback(() => {
|
||||
dispatch(dismissSuggestion(id));
|
||||
dispatch(dismissSuggestion({ accountId: id }));
|
||||
}, [id, dispatch]);
|
||||
|
||||
let label;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue