Skip to content

Commit dd90198

Browse files
authored
Fix repo-template.ts error in 1.23 (#34060)
Fix #34059
1 parent 7f962a1 commit dd90198

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web_src/js/features/repo-template.ts

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ const {appSubUrl} = window.config;
66

77
export function initRepoTemplateSearch() {
88
const $repoTemplate = $('#repo_template');
9+
if (!$repoTemplate.length) return; // make sure the current page is "new repo" page
10+
911
const checkTemplate = function () {
1012
const $templateUnits = $('#template_units');
1113
const $nonTemplate = $('#non_template');

0 commit comments

Comments
 (0)