This commit is contained in:
@@ -257,8 +257,9 @@ export default {
|
||||
.get("pick-list/List" + urlParams)
|
||||
.then(res => {
|
||||
vm.fetching = false;
|
||||
if (res.error) {
|
||||
throw res.error;
|
||||
//We never expect there to be no data here
|
||||
if (!res.data) {
|
||||
throw res;
|
||||
}
|
||||
vm.searchResults = res.data;
|
||||
window.$gz.form.addNoSelectionItem(vm.searchResults);
|
||||
|
||||
@@ -79,10 +79,11 @@ export default {
|
||||
}
|
||||
vm.tagSearchUnderway = true;
|
||||
window.$gz.api
|
||||
.get("tag/list?query=" + val) //roles
|
||||
.get("tag-list/list?query=" + val) //roles
|
||||
.then(res => {
|
||||
if (res.error) {
|
||||
throw res.error;
|
||||
//We never expect there to be no data here
|
||||
if (!res.data) {
|
||||
throw res;
|
||||
}
|
||||
//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
|
||||
|
||||
Reference in New Issue
Block a user