The select element does not change the query when the user selects a different TYPE. It stays at the default 'MAX' query. The console outputs an error message "Cannot read property 'on' of null. I printed to the console the dom.byId("queryDiv"), and it printed null. I attached a screenshot of the error message.

The select element does not change the query when the user selects a different TYPE. It stays at the default 'MAX' query. The console outputs an error message "Cannot read property 'on' of null. I printed to the console the dom.byId("queryDiv"), and it printed null. I attached a screenshot of the error message.
