Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missed return to actions view fetch #27289

Merged
merged 3 commits into from
Sep 27, 2023

Conversation

silverwind
Copy link
Member

Should fix: #27213

@denyskon can you test this? I can not reproduce this error locally.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 26, 2023
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 26, 2023
@silverwind silverwind added the backport/v1.21 This PR should be backported to Gitea 1.21 label Sep 26, 2023
@github-actions github-actions bot added the topic/ui Change the appearance of the Gitea UI label Sep 26, 2023
@denyskon
Copy link
Member

Unfortunately, I cannot test it where I get the error, as that is an instance I use in production, and as it runs off docker....

@silverwind
Copy link
Member Author

Can you show exact line/column of the pretty-printed devtools source? Then I'd know for sure I guess.

We should probably think about enabling source maps for prod builds, too much of a pain to trace such errors.

@denyskon
Copy link
Member

denyskon commented Sep 26, 2023

grafik
It points to the closing curly brace of the catch statement

@silverwind
Copy link
Member Author

silverwind commented Sep 26, 2023

I see, so the t in your error message refers to the fetch return value in the screenshot. I'm pretty positive this will fix it then.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Sep 26, 2023
@silverwind
Copy link
Member Author

#27291 will introduce a sourcemap for index.js, so we'll have a easier time debugging this next time.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Sep 27, 2023
@wxiaoguang wxiaoguang merged commit 709c2fa into go-gitea:main Sep 27, 2023
25 checks passed
@GiteaBot GiteaBot added this to the 1.22.0 milestone Sep 27, 2023
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request Sep 27, 2023
@GiteaBot GiteaBot added the backport/done All backports for this PR have been created label Sep 27, 2023
lunny pushed a commit that referenced this pull request Sep 27, 2023
Backport #27289 by @silverwind

Should fix: #27213

@denyskon can you test this? I can not reproduce this error locally.

Co-authored-by: silverwind <[email protected]>
zjjhot added a commit to zjjhot/gitea that referenced this pull request Sep 28, 2023
* giteaoffical/main: (22 commits)
  Fix review UI (go-gitea#27322)
  Improve issue history dialog and make poster can delete their own history (go-gitea#27323)
  Improve branch list UI (go-gitea#27319)
  doctor: delete action entries without existing user (go-gitea#27292)
  fix orphan check for deleted branch (go-gitea#27310)
  make writing main test easier (go-gitea#27270)
  [skip ci] Updated translations via Crowdin
  Fix protected branch icon location (go-gitea#26576)
  move the `gitea admin` subcommands into separate files (go-gitea#27307)
  Fix chinese translation (go-gitea#27296)
  bump bleve (go-gitea#27300)
  Redefine the meaning of column is_active to make Actions Registration Token generation easier (go-gitea#27143)
  Use vitest globals (go-gitea#27102)
  Fix divider in subscription page (go-gitea#27298)
  Fix yaml test (go-gitea#27297)
  Enable production source maps for index.js, fix CSS sourcemaps (go-gitea#27291)
  Fix some animation bugs (go-gitea#27287)
  Add missed return to actions view fetch (go-gitea#27289)
  Fix more yaml lint errors (go-gitea#27284)
  Fix incorrect change from go-gitea#27231 (go-gitea#27275)
  ...
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Dec 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created backport/v1.21 This PR should be backported to Gitea 1.21 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JS error on action run page
4 participants