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

View File

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