mirror of
https://github.com/coleam00/bolt.new-any-llm
synced 2024-12-27 22:33:03 +00:00
Update DebugTab.tsx
This commit is contained in:
parent
a976a25094
commit
aa3559149f
@ -266,7 +266,12 @@ export default function DebugTab() {
|
||||
throw new Error('Failed to fetch repository information');
|
||||
}
|
||||
|
||||
const localCommitData = await localCommitResponse.json();
|
||||
// Define the expected structure of the commit data
|
||||
interface CommitData {
|
||||
commit: string;
|
||||
}
|
||||
|
||||
const localCommitData: CommitData = await localCommitResponse.json(); // Explicitly define the type here
|
||||
const originalCommitHash = localCommitData.commit; // Use the fetched commit hash
|
||||
|
||||
const currentLocalCommitHash = commit.commit; // Your current local commit hash
|
||||
|
Loading…
Reference in New Issue
Block a user