From 31d5bfda9881b4cc2571321cb120f096e4a182e2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 28 Jul 2020 21:11:12 +0000 Subject: [PATCH] --- ayanova/src/views/home-notify-direct.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ayanova/src/views/home-notify-direct.vue b/ayanova/src/views/home-notify-direct.vue index d7fba7c7..84755852 100644 --- a/ayanova/src/views/home-notify-direct.vue +++ b/ayanova/src/views/home-notify-direct.vue @@ -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;