mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-22 19:06:12 +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');
|
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 originalCommitHash = localCommitData.commit; // Use the fetched commit hash
|
||||||
|
|
||||||
const currentLocalCommitHash = commit.commit; // Your current local commit hash
|
const currentLocalCommitHash = commit.commit; // Your current local commit hash
|
||||||
|
Loading…
Reference in New Issue
Block a user