avoid address reference search on undefined post code

This commit is contained in:
nobohan
2022-04-07 16:55:54 +02:00
parent 00a6ef0598
commit c0ee51068c
2 changed files with 2 additions and 1 deletions

View File

@@ -119,7 +119,7 @@ export default {
},
listenInputSearch(query) {
//console.log('listenInputSearch', query, this.isAddressSelectorOpen);
if (!this.entity.selected.writeNew.postcode) {
if (!this.entity.selected.writeNew.postcode && 'id' in this.entity.selected.city) {
if (query.length > 2) {
this.isLoading = true;
searchReferenceAddresses(query, this.entity.selected.city).then(