- Issue created by @kvantstudio
- First commit to issue fork.
- Merge request !7406Issue #3367107: Can't access property "command", _response$key is null → (Open) created by Aadhar_Gupta
- Status changed to Needs review
8 months ago 4:05am 10 April 2024 - 🇮🇳India Aadhar_Gupta
In the modification, I added a check for null or undefined values when accessing properties of the response object using response[key] || {}. This ensures that if response[key] is null or undefined, an empty object will be used instead, preventing potential errors when trying to access properties of null or undefined values. This modification should help address the issue you're encountering with the AJAX response handling in Drupal.
- Status changed to Needs work
8 months ago 5:47pm 10 April 2024 - 🇺🇸United States smustgrave
Should do some research and find out why it's null vs just a check.
Could be masking a larger issue if we silence the error. If after the research the fix is still to just put a check that's fine but still need to find out more info.