mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-10 10:50:21 +02:00
Fix a number of typescript errors (#32773)
Fixes 96 typescript errors. Behaviour changes are commented below. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
1 parent
e619384098
commit
8a53a39c42
19 files changed
+81
-80
No files matched your search
@@ -13,7 +13,7 @@ function tableSort(normSort, revSort, isDefault) {
|
||||
if (!normSort) return false;
|
||||
if (!revSort) revSort = '';
|
||||
|
||||
const url = new URL(window.location);
|
||||
const url = new URL(window.location.href);
|
||||
let urlSort = url.searchParams.get('sort');
|
||||
if (!urlSort && isDefault) urlSort = normSort;
|
||||
|
||||
|
||||
Reference in new issue
Block a user