File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export function showGlobalErrorMessage(msg) {
23
23
let msgDiv = pageContent . querySelector ( `.js-global-error[data-global-error-msg-compact="${ msgCompact } "]` ) ;
24
24
if ( ! msgDiv ) {
25
25
const el = document . createElement ( 'div' ) ;
26
- el . innerHTML = `<div class="ui container negative message center aligned js-global-error" style="white-space: pre-line; "></div>` ;
26
+ el . innerHTML = `<div class="ui container negative message center aligned js-global-error tw-mt-[15px] tw-whitespace- pre-line"></div>` ;
27
27
msgDiv = el . childNodes [ 0 ] ;
28
28
}
29
29
// merge duplicated messages into "the message (count)" format
Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ export function initRepoCommonBranchOrTagDropdown(selector) {
76
76
77
77
export function initRepoCommonFilterSearchDropdown ( selector ) {
78
78
const $dropdown = $ ( selector ) ;
79
+ if ( ! $dropdown . length ) return ;
80
+
79
81
$dropdown . dropdown ( {
80
82
fullTextSearch : 'exact' ,
81
83
selectOnKeydown : false ,
You can’t perform that action at this time.
0 commit comments