i have this code and get the error like in the title.
private checkDirectionType() { if (this.buttons.toArray()) { let display = \'block\'; i