Update patch set 5
Patch Set 5:
I had commented out line 826 because if the query is empty, the else block is not executed and so the button would have remained disabled. Since I removed that line I had also removed 843 as it is then no longer required.
However, I realise that disabling the button while the query is running is necessary, so I have added those lines again and added an extra line to enable the button again in case of an empty query.
Reviewer: Prssanna <5787@e9e9afe9-4712-486d-8885-f54b72dd1951>