This commit is contained in:
2020-07-28 21:11:12 +00:00
parent 65e3540b59
commit 31d5bfda98

View File

@@ -318,7 +318,7 @@ async function fetchTranslatedText(vm) {
async function preFillSelection(vm) {
var idParam = vm.$route.params.userIdList;
let l = [];
if (idParam.includes(",")) {
if (typeof idParam == "string" && idParam.includes(",")) {
//just a random list of user ids seperated by commas
l = idParam.split(",").map(z => parseInt(z, 10));
} else {
@@ -326,10 +326,6 @@ async function preFillSelection(vm) {
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) {
if (vm.toUsers.find(z => z.id == i)) {
continue;