Skip to content

Commit 07b7969

Browse files
committed
chore: update
1 parent b63d084 commit 07b7969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/diff.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import { useDiffTreeView } from '@/views/diff'
99
export default function diffCommand() {
1010
const { getPreviousCommit } = useGitService()
1111
const workspaceFolders = useWorkspaceFolders()
12-
const diffProvider = useDiffTreeView()
12+
const { selectedCommitHash } = useDiffTreeView()
1313

1414
return async (fileInfo: { path: string, status: string }) => {
15-
const commit = (await diffProvider).selectedCommitHash.value
15+
const commit = selectedCommitHash.value
1616
if (!commit) {
1717
return
1818
}

0 commit comments

Comments
 (0)