Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JS error on compare page (go-gitea#23551) (go-gitea#23566)
Backport go-gitea#23551 by @silverwind Fix regression from go-gitea#23271. This code apparently runs on the compare page where there is no review button so check for existance of both button and content. <img width="1226" alt="Screenshot 2023-03-17 at 21 42 47" src="https://user-images.githubusercontent.com/115237/226040001-ec097edd-d926-4c80-9962-526f9b7eff19.png"> Fixes go-gitea#23562 Co-authored-by: silverwind <me@silverwind.io>
- Loading branch information