Skip to content

Commit

Permalink
Remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mamoodi committed Dec 20, 2024
1 parent 50ce0f7 commit 873b732
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions frontend/src/components/features/chat/action-suggestions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ export function ActionSuggestions({
(state: RootState) => state.initialQuery,
);

// Debug logs
console.log('ActionSuggestions - gitHubToken:', !!gitHubToken);
console.log('ActionSuggestions - selectedRepository:', selectedRepository);

const [isDownloading, setIsDownloading] = React.useState(false);
const [hasPullRequest, setHasPullRequest] = React.useState(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export function GitHubRepositorySelector({
);
} else if (repo) {
// set query param
console.log('Selecting repository:', repo.full_name);
dispatch(setSelectedRepository(repo.full_name));
posthog.capture("repository_selected");
onSelect();
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/state/initial-query-slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ export const selectedFilesSlice = createSlice({
state.initialQuery = null;
},
setSelectedRepository(state, action: PayloadAction<string | null>) {
console.log('Redux - Setting selectedRepository:', action.payload);
state.selectedRepository = action.payload;
console.log('Redux - New state:', state);
},
clearSelectedRepository(state) {
state.selectedRepository = null;
Expand Down

0 comments on commit 873b732

Please sign in to comment.