From e6fec8fbeba993de9a63e68a77cae8eded5acec2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 19 Mar 2020 00:00:52 +0000 Subject: [PATCH] --- ayanova/src/components/pick-list.vue | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/ayanova/src/components/pick-list.vue b/ayanova/src/components/pick-list.vue index f11d824d..b89ed919 100644 --- a/ayanova/src/components/pick-list.vue +++ b/ayanova/src/components/pick-list.vue @@ -5,8 +5,7 @@ --> -
searchEntry {{ searchEntry }} @@ -94,17 +91,17 @@ export default { data() { return { sourceresults: [], - selected: {}, + selected: { name: "-", id: 0 }, searchEntry: null, searchUnderway: false //,initialized: false }; }, props: { - value: { - type: Number, - default: 0 - }, + // value: { + // type: Number, + // default: 0 + // }, ayaType: { type: Number, default: 0 @@ -130,7 +127,10 @@ export default { } console.log("watch::searchEntry,val=", val); - console.log("vm.selected=", vm.selected); + if (vm.selected != null) { + console.log("vm.selected=", vm.selected); + debugger; + } vm.searchUnderway = true; var urlParams = "?ayaType=" + vm.ayaType; @@ -146,7 +146,7 @@ export default { .get("PickList/List" + urlParams) .then(res => { if (res.error) { - throw res.error; + // throw res.error; } //adding this to the property will automatically have it cached by the autocomplete component //as cache-items has been set so this just needs to be set here once and all is well in future