Skip to content

Guard check on variable doesn't work as expected #16850

@MSDev201

Description

@MSDev201

Describe the bug

I'm experiencing a very strange bug where a variable check for undefined is seemingly ignored. This causes lots of issues down the line.

Image Image (the first if doesn't need to be this long but wanted to make sure) Image

This issue seems to be introduced in version 5.38.2 since it works without issues in version 5.38.1. Its still happening in the most recent version.

Reproduction

Unfortunately after lots of trying I'm not able to reproduce this issue in a simpler form yet.

Logs

Chrome:

error-handling.js:68 Uncaught TypeError: Cannot read properties of undefined (reading 'depth')

Firefox:

Uncaught TypeError: can't access property "depth", $.get(...) is undefined

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (28) x64 13th Gen Intel(R) Core(TM) i7-13850HX
    Memory: 33.43 GB / 63.61 GB
  Binaries:
    Node: 22.13.1 - C:\nvm4w\nodejs\node.EXE
    npm: 10.9.2 - C:\nvm4w\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (140.0.3485.54)
    Internet Explorer: 11.0.22621.3527

Tested on:
* Google Chrome Version 140.0.7339.186 (Official Build) (64-bit)
* Firefox 140.3.0esr (64-Bit)

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions