Skip to content

Commit

Permalink
[MM-350] Fix issue in create issue modal and attach issue modal (#761)
Browse files Browse the repository at this point in the history
Co-authored-by: raghavaggarwal2308 <raghav.aggarwal@brightscout.com>
  • Loading branch information
ayusht2810 and raghavaggarwal2308 authored Jul 13, 2024
1 parent d70572b commit a7e16de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/plugin/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ func (p *Plugin) searchIssues(c *UserContext, w http.ResponseWriter, r *http.Req
result, _, err := githubClient.Search.Issues(c.Ctx, query, &github.SearchOptions{})
if err != nil {
c.Log.WithError(err).With(logger.LogContext{"query": query}).Warnf("Failed to search for issues")
p.writeJSON(w, make([]*github.Issue, 0))
return
}

Expand Down
4 changes: 4 additions & 0 deletions webapp/src/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export function getRepos() {
try {
data = await Client.getRepositories();
} catch (error) {
dispatch({
type: ActionTypes.RECEIVED_REPOSITORIES,
data: [],
});
return {error: data};
}

Expand Down

0 comments on commit a7e16de

Please sign in to comment.