Skip to content

Commit

Permalink
Merge pull request #604 from seungineer/main
Browse files Browse the repository at this point in the history
fix(view): dev 모드 실행 정상화
  • Loading branch information
seungineer authored Aug 5, 2024
2 parents 7fc21eb + f9306fd commit cf22b3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/view/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ const App = () => {
useEffect(() => {
const handleMessage = (event: MessageEvent<RemoteGitHubInfo>) => {
const message = event.data;
setOwner(message.data.owner);
setRepo(message.data.repo);
if (message.data) {
setOwner(message.data.owner);
setRepo(message.data.repo);
}
};

window.addEventListener("message", handleMessage);
Expand Down
1 change: 1 addition & 0 deletions packages/vscode/src/webview-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export default class WebviewLoader implements vscode.Disposable {
const gitLog = await getGitLog(this.gitPath, this.getCurrentWorkspacePath());
const gitConfig = await getGitConfig(this.gitPath, this.getCurrentWorkspacePath(), "origin");
const { owner, repo } = getRepo(gitConfig);
this.setGlobalOwnerAndRepo(owner, repo);
const engine = new AnalysisEngine({
isDebugMode: true,
gitLog,
Expand Down

0 comments on commit cf22b3c

Please sign in to comment.