Skip to content

Commit

Permalink
Fix typo in Redux store key (initalQuery -> initialQuery)
Browse files Browse the repository at this point in the history
  • Loading branch information
openhands-agent committed Dec 20, 2024
1 parent 29bfa2b commit 1a23066
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function ActionSuggestions({
onSuggestionsClick,
}: ActionSuggestionsProps) {
const { gitHubToken } = useAuth();
const selectedRepository = useSelector((state: RootState) => state.initalQuery.selectedRepository);
const selectedRepository = useSelector((state: RootState) => state.initialQuery.selectedRepository);

Check failure on line 17 in frontend/src/components/features/chat/action-suggestions.tsx

View workflow job for this annotation

GitHub Actions / Lint frontend

Replace `(state:·RootState)·=>·state.initialQuery.selectedRepository` with `⏎····(state:·RootState)·=>·state.initialQuery.selectedRepository,⏎··`

const [isDownloading, setIsDownloading] = React.useState(false);
const [hasPullRequest, setHasPullRequest] = React.useState(false);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import statusReducer from "./state/status-slice";

export const rootReducer = combineReducers({
fileState: fileStateReducer,
initalQuery: initialQueryReducer,
initialQuery: initialQueryReducer,
browser: browserReducer,
chat: chatReducer,
code: codeReducer,
Expand Down

0 comments on commit 1a23066

Please sign in to comment.