Debut theme JS error Drawer.prototype.init = function() { document .querySelector(this

Hi

We are using the Debut latest theme

Console Error : theme.js?v=4478587697026121031? [sm]:2374 Uncaught TypeError: Cannot read properties of null (reading ‘addEventListener’)

Drawer.prototype.init = function() {
    document
      .querySelector(this.config.selectors.openVariant)
      .addEventListener('click', this.open.bind(this));
    this.drawer
      .querySelector(this.config.selectors.close)
      .addEventListener('click', this.close.bind(this));
  };

Hi @AvidBrio ,

Please send your site and if your site is password protected, please send me the password. I will check it.

This error sow due to i remove the the debut theme search elements from theme/section/header.liquid

i added code back js error resolved