Populate data by default into a grid

I am using a!queryEntity() to bring data from the database. I am populating a grid with that data. I have a search filter on top of my grid which will alter the grid depending on what is typed. This would also mean that I am a!queryFilter() within my a!queryEntity(). I want all the data to be populated by default in my grid. In the attached code, you will see that I have an if condition. If the search parameter is null, I want to display all of the data (that is the part I am missing). Any ideas how would I accomplish this?

queryEntity.txt

OriginalPostID-190320

OriginalPostID-190320

  Discussion posts and replies are publicly visible