Fix repo-template.ts error in 1.23 (#34060)

Fix #34059
This commit is contained in:
wxiaoguang 2025-03-30 03:30:27 +08:00 committed by GitHub
parent 7f962a16c9
commit dd901983c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,8 @@ const {appSubUrl} = window.config;
export function initRepoTemplateSearch() {
const $repoTemplate = $('#repo_template');
if (!$repoTemplate.length) return; // make sure the current page is "new repo" page
const checkTemplate = function () {
const $templateUnits = $('#template_units');
const $nonTemplate = $('#non_template');