Skip to content

Commit

Permalink
Default the repos list in case the store returns a falsy value
Browse files Browse the repository at this point in the history
Fixes #151
  • Loading branch information
morwoen committed Aug 6, 2024
1 parent 4c1a99b commit 6be4940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/core/repoSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function RepoSelector(props) {
useEffect(() => {
window.api.store.onReceive(readConfigResponse, function(args){
if (args.success && args.key === "repos") {
dispatch(setRepos(args.value));
dispatch(setRepos(args.value || []));
}
});
window.api.store.send(readConfigRequest, "repos");
Expand Down

0 comments on commit 6be4940

Please sign in to comment.