An unexpected error occurred: Cannot convert undefined or null to object

is it because of facets are not in search response?
if yes then how to handle it ?

Hi @Swapnil_Ghorpade, if this is search-ui related I recommend you log an issue directly on the repository:

Please be sure to provide more information when you do so. The version number you are using, the browser, the full stack trace, and steps to reproduce.