diff --git a/apps/console/src/pages/organizations/cookie-banners/configuration/trackers/_components/TrackerPatternRow.tsx b/apps/console/src/pages/organizations/cookie-banners/configuration/trackers/_components/TrackerPatternRow.tsx index 430117fb3..cb1ac2b4b 100644 --- a/apps/console/src/pages/organizations/cookie-banners/configuration/trackers/_components/TrackerPatternRow.tsx +++ b/apps/console/src/pages/organizations/cookie-banners/configuration/trackers/_components/TrackerPatternRow.tsx @@ -203,6 +203,9 @@ export function TrackerPatternRow({ patternKey, connectionId }: TrackerPatternRo }; const handleMove = (targetCategoryId: string) => { + if (targetCategoryId === pattern.cookieCategory?.id) { + return; + } movePattern({ variables: { input: { @@ -234,22 +237,6 @@ export function TrackerPatternRow({ patternKey, connectionId }: TrackerPatternRo }); }; - const handleMoveWithConfirm = (targetCategoryId: string) => { - if (targetCategoryId === pattern.cookieCategory?.id) { - return; - } - confirm( - () => { - handleMove(targetCategoryId); - }, - { - message: __("Moving this tracker to a category will create a third party for it (or link an existing one) if it doesn't have one yet. Continue?"), - variant: "primary", - label: __("Move"), - }, - ); - }; - const handleToggleExcluded = () => { updatePattern({ variables: { @@ -390,7 +377,7 @@ export function TrackerPatternRow({ patternKey, connectionId }: TrackerPatternRo