Got this TypeError: 'undefined' is not an object (evaluating 'this.opening.update') when removing a parameter from a function.