Error invoking action "click->nested#remove_association" TypeError: t is null
import { Controller } from "@hotwired/stimulus" // Connects to data-controller="nested" export default class extends Controller { static targets = ["add_item", "template"] static values = { index: String } add_association(event) { event.preventDefault() var content = this.templateTarget.innerHTML.replace(new RegExp(this.indexValue, 'g'), new Date().valueOf()) this.add_itemTarget.insertAdjacentHTML('beforebegin', content) } remove_association(event) { event.preventDefault() let item = event.target.closest(".nested-fields") item.querySelector("input[body*='_destroy']").value = 1 item.style.display = 'none' }}