Fix rela type issue

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-06-19 14:27:25 +02:00
parent 7e943c8105
commit abb641111a

View File

@@ -12,7 +12,7 @@
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
import { formatError, getTrackerSourceBadge, getTrackerTypeBadge, type GraphQLError, humanizeSeconds } from "@probo/helpers";
import { formatError, getTrackerSourceBadge, getTrackerTypeBadge, humanizeSeconds } from "@probo/helpers";
import { useTranslate } from "@probo/i18n";
import { Badge, Card, IconSquareBehindSquare2, PropertyRow, useToast } from "@probo/ui";
import { graphql, useFragment, useMutation } from "react-relay";
@@ -83,7 +83,7 @@ export function TrackerPatternPropertiesSection({
}: TrackerPatternPropertiesSectionProps) {
const { toast } = useToast();
const { __ } = useTranslate();
const pattern = useFragment(
const pattern = useFragment<TrackerPatternPropertiesSection_trackerPattern$key>(
trackerPatternPropertiesSectionFragment,
trackerPatternKey,
);
@@ -110,7 +110,7 @@ export function TrackerPatternPropertiesSection({
toast({ title: __("Success"), description: __("Cookie moved"), variant: "success" });
},
onError(error) {
toast({ title: __("Error"), description: formatError(__("Failed to move cookie"), error as GraphQLError), variant: "error" });
toast({ title: __("Error"), description: formatError(__("Failed to move cookie"), error), variant: "error" });
},
});
};