This commit is contained in:
@@ -318,7 +318,7 @@ async function fetchTranslatedText(vm) {
|
|||||||
async function preFillSelection(vm) {
|
async function preFillSelection(vm) {
|
||||||
var idParam = vm.$route.params.userIdList;
|
var idParam = vm.$route.params.userIdList;
|
||||||
let l = [];
|
let l = [];
|
||||||
if (idParam.includes(",")) {
|
if (typeof idParam == "string" && idParam.includes(",")) {
|
||||||
//just a random list of user ids seperated by commas
|
//just a random list of user ids seperated by commas
|
||||||
l = idParam.split(",").map(z => parseInt(z, 10));
|
l = idParam.split(",").map(z => parseInt(z, 10));
|
||||||
} else {
|
} else {
|
||||||
@@ -326,10 +326,6 @@ async function preFillSelection(vm) {
|
|||||||
l.push(parseInt(idParam, 10));
|
l.push(parseInt(idParam, 10));
|
||||||
}
|
}
|
||||||
|
|
||||||
//l = window.$gz._.uniq(l);
|
|
||||||
//iterate the array, fetch and store each user returned from
|
|
||||||
//pick-list/List?ayaType=3&preId=[IDVALUE]
|
|
||||||
//into vm.toUsers
|
|
||||||
for (let i of l) {
|
for (let i of l) {
|
||||||
if (vm.toUsers.find(z => z.id == i)) {
|
if (vm.toUsers.find(z => z.id == i)) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user