Mark navigate() call as void to satisfy lint
The post-delete redirect on the campaign detail page returned a floating Promise from react-router's navigate(), tripping the @typescript-eslint/no-floating-promises rule. Prefix the call with `void` to match the convention used elsewhere in the app. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -309,7 +309,7 @@ export default function CampaignDetailPage({ queryRef }: Props) {
|
||||
variant: "success",
|
||||
});
|
||||
resolve();
|
||||
navigate(`/organizations/${organizationId}/access-reviews`);
|
||||
void navigate(`/organizations/${organizationId}/access-reviews`);
|
||||
},
|
||||
onError(error) {
|
||||
toast({
|
||||
|
||||
Reference in New Issue
Block a user