aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-projects.js
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2021-11-12 20:37:45 +0800
committerGitHub <noreply@github.com>2021-11-12 20:37:45 +0800
commit7f802631c54d2e91301158380b273b872d62bd80 (patch)
treed2c138ae0c01fa557a0601829436bae06ac7861c /web_src/js/features/repo-projects.js
parent0db7a32b9233d2c0039df4e89356ef0cbcef6dae (diff)
downloadgitea-7f802631c54d2e91301158380b273b872d62bd80.tar.gz
gitea-7f802631c54d2e91301158380b273b872d62bd80.zip
Fix some incorrect async functions, improve frontend document. (#17597)
Diffstat (limited to 'web_src/js/features/repo-projects.js')
-rw-r--r--web_src/js/features/repo-projects.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/web_src/js/features/repo-projects.js b/web_src/js/features/repo-projects.js
index 995b971be5..270d546713 100644
--- a/web_src/js/features/repo-projects.js
+++ b/web_src/js/features/repo-projects.js
@@ -63,9 +63,7 @@ export default function initRepoProject() {
return;
}
- (async () => {
- await initRepoProjectSortable();
- })();
+ const _promise = initRepoProjectSortable();
$('.edit-project-board').each(function () {
const projectHeader = $(this).closest('.board-column-header');