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:
Bryan Frimin
2026-05-07 10:54:22 +02:00
parent 177bc5e825
commit fd514d480b

View File

@@ -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({