I have the following function returns a promise:
showObjects(data: ShowObjects[], parameters: ShowObjectsParameters): Promise<number> { if (data && data.length) return this.layerSearchManager.search(data, parameters); }
Using is:
async show() { try { const id = await = this.showObjects([], {}); } catch (e) { console.log(e); } }
In case when
if (data && data.length)
Anonymous Asked question May 13, 2021
Recent Comments