Patient lookup query length minimum = 3

This commit is contained in:
Jiang Yio 2023-05-16 23:25:52 -04:00
parent b74dcb7d24
commit d3673fc826

View File

@ -48,7 +48,7 @@
created() {
this.query_sync = debounce(async function(value) {
this.query_view = value = value.replace(/^\s+|\s+$/g, '').replace(/\s+/g, ' ');
this.resultset = value ? (await this.client.ORWPT16_LOOKUP(value)) : [];
this.resultset = (value) && (value.length >= 3) ? (await this.client.ORWPT16_LOOKUP(value)) : [];
}, 500);
},
async mounted() {