Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
52e5250b
Commit
52e5250b
authored
Aug 02, 2018
by
Dennis Tang
Committed by
Clement Ho
Aug 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "Top nav search bar produces console error when unauthenticated"
parent
bed7ff8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
app/assets/javascripts/search_autocomplete.js
app/assets/javascripts/search_autocomplete.js
+5
-1
changelogs/unreleased/49861-top-nav-search-bar-produces-console-error-when-unauthenticated.yml
...earch-bar-produces-console-error-when-unauthenticated.yml
+5
-0
No files found.
app/assets/javascripts/search_autocomplete.js
View file @
52e5250b
...
@@ -137,7 +137,11 @@ export default class SearchAutocomplete {
...
@@ -137,7 +137,11 @@ export default class SearchAutocomplete {
if
(
!
term
)
{
if
(
!
term
)
{
const
contents
=
this
.
getCategoryContents
();
const
contents
=
this
.
getCategoryContents
();
if
(
contents
)
{
if
(
contents
)
{
this
.
searchInput
.
data
(
'
glDropdown
'
).
filter
.
options
.
callback
(
contents
);
const
glDropdownInstance
=
this
.
searchInput
.
data
(
'
glDropdown
'
);
if
(
glDropdownInstance
)
{
glDropdownInstance
.
filter
.
options
.
callback
(
contents
);
}
this
.
enableAutocomplete
();
this
.
enableAutocomplete
();
}
}
return
;
return
;
...
...
changelogs/unreleased/49861-top-nav-search-bar-produces-console-error-when-unauthenticated.yml
0 → 100644
View file @
52e5250b
---
title
:
fix error caused when using the search bar while unauthenticated
merge_request
:
20970
author
:
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment