If you listen to SearchManager.on("search:done", fn); you'll not be able to reliably read result rows from SearchManager.data("results").data() - consistent with that, SearchManager.data("results").hasData() will sometimes return false.
Instead, use the results object's .on("data", fn); listener, like @slashnburn mentions above:
const search_man; // : SearchManager
const results = search_man.data("results");
results.on("data", () => {
if (results.hasData()) {
console.log(results.data().rows);
}
});
... View more