Skip to content

Commit f0b0218

Browse files
committed
Update useRepo usage
1 parent 3bdb26a commit f0b0218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/actions/FileDiff.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ interface Props {
1010
}
1111

1212
export function FileDiff({ fileName, isShowingDiff, updateDiff }: Props) {
13-
const { value: repo } = useRepo();
13+
const { value } = useRepo();
1414
const { revalidate } = useExec("git", ["diff", "--histogram", "head", fileName], {
15-
cwd: repo,
15+
cwd: value,
1616
execute: false,
1717
keepPreviousData: false,
1818
onData: (data) => {

0 commit comments

Comments
 (0)