Drop redundant @deleteRecord on campaigns list mutation

@deleteEdge already removes the deleted campaign from the
connection on the list view, so the extra @deleteRecord was
redundant. The detail page mutation still uses @deleteRecord
since it has no connection to delete from.

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-05-07 12:58:46 +02:00
parent f26bd8b0bf
commit 0ea991b628

View File

@@ -91,9 +91,7 @@ const deleteCampaignMutation = graphql`
$connections: [ID!]! $connections: [ID!]!
) { ) {
deleteAccessReviewCampaign(input: $input) { deleteAccessReviewCampaign(input: $input) {
deletedAccessReviewCampaignId deletedAccessReviewCampaignId @deleteEdge(connections: $connections)
@deleteEdge(connections: $connections)
@deleteRecord
} }
} }
`; `;