Improve repo/user/org search (#27030)
* Fix a regression from #26809 (the `data-org` is missing) * Remove unnecessary style Screenshots:   
This commit is contained in:
parent
e6b68c579b
commit
739e47cd80
3 changed files with 4 additions and 10 deletions
|
@ -47,7 +47,7 @@ export function initRepoSettingSearchTeamBox() {
|
|||
$searchTeamBox.search({
|
||||
minCharacters: 2,
|
||||
apiSettings: {
|
||||
url: `${appSubUrl}/org/${$searchTeamBox.data('org')}/teams/-/search?q={query}`,
|
||||
url: `${appSubUrl}/org/${$searchTeamBox.attr('data-org-name')}/teams/-/search?q={query}`,
|
||||
headers: {'X-Csrf-Token': csrfToken},
|
||||
onResponse(response) {
|
||||
const items = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue