zoninator icon indicating copy to clipboard operation
zoninator copied to clipboard

Send empty set when search yields no results

Open dlh01 opened this issue 4 years ago • 0 comments

When a search for content yields no results, Zoninator exits without sending a response. jQuery interprets this response to represent a failed request (I believe because it interprets it as malformed JSON) and never fires the "success" callback that removes the loading spinner, making it look to the user as though they're still waiting for search results. Sending an empty array back to the browser appears to address this issue.

dlh01 avatar May 06 '21 02:05 dlh01