This commit is contained in:
2020-06-19 21:38:32 +00:00
parent 48d062c49b
commit bfcae2a750
15 changed files with 76 additions and 58 deletions

View File

@@ -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);

View File

@@ -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