Merge branch 'fix-groups-long-url' into 'master'
Make group skip validation in the frontend Closes #29236 See merge request !10426
This commit is contained in:
commit
5771ee400f
|
@ -45,14 +45,14 @@ window.GroupsSelect = (function() {
|
|||
page,
|
||||
per_page: GroupsSelect.PER_PAGE,
|
||||
all_available,
|
||||
skip_groups,
|
||||
};
|
||||
},
|
||||
results: function (data, page) {
|
||||
if (data.length) return { results: [] };
|
||||
|
||||
const results = data.length ? data : data.results || [];
|
||||
const groups = data.length ? data : data.results || [];
|
||||
const more = data.pagination ? data.pagination.more : false;
|
||||
const results = groups.filter(group => skip_groups.indexOf(group.id) === -1);
|
||||
|
||||
return {
|
||||
results,
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Skip groups validation on the client
|
||||
merge_request:
|
||||
author:
|
Loading…
Reference in New Issue