Skip to content

Commit 16d2971

Browse files
committed
Update openExternal usage
1 parent 01d3c7a commit 16d2971

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/array/src/renderer/features/sessions/components/GitActionResult.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
import { Badge, Box, Button, Flex, Text } from "@radix-ui/themes";
88
import { useQuery } from "@tanstack/react-query";
99
import type { GitActionType } from "./GitActionMessage";
10+
import { trpcVanilla } from "@/renderer/trpc";
1011

1112
interface GitActionResultProps {
1213
actionType: GitActionType;
@@ -38,7 +39,7 @@ export function GitActionResult({
3839
});
3940

4041
const handleOpenUrl = (url: string) => {
41-
window.electronAPI.openExternal(url);
42+
trpcVanilla.os.openExternal.mutate({ url });
4243
};
4344

4445
if (isCloud) {

0 commit comments

Comments
 (0)