Skip to content

Dashboard failing to enroll new network devices. #1877

@jamtur01

Description

@jamtur01

Describe the bug

From https://mydash.defguard.mydomain.com/admin/devices

Click on Add New

Image

The option of the two types of enrollment pops up.

Image

If I click Next the page crashes.

Uncaught TypeError: Cannot read properties of undefined (reading 'value')
    at App-TWIWUZXT.js:28:21093
    at Object.useMemo (index-D9mJxHLS.js:9:60803)
    at QO.je.useMemo (index-D9mJxHLS.js:2:40779)
    at cY (App-TWIWUZXT.js:28:20977)
    at ih (index-D9mJxHLS.js:9:48240)
    at Th (index-D9mJxHLS.js:9:71054)
    at J0 (index-D9mJxHLS.js:9:81414)
    at zS (index-D9mJxHLS.js:9:117215)
    at xM (index-D9mJxHLS.js:9:116259)
    at Gh (index-D9mJxHLS.js:9:116089)Understand this error
Image

In this code:

      , [y,_] = xn(E => [E.initLocationIpResponse, E.networkOptions], de)
      , x = g.useMemo( () => {
        if (y && _)
            return {
                modifiableIpParts: y.map(T => T.modifiable_part),
                generationChoice: bs.AUTO,
                location_id: _[0].value,
                name: "",
                wireguard_pubkey: "",
                description: ""
            }
    }
    , [y, _])

Both options produce this outcome.

Expected behavior
Continue the enrollment process

Version information

  • Defguard Core version: v1.6.1
    • Operating system and version running the gateway: Macos 26.2 on Chrome 143.0.7499.193 (Official Build) (arm64) (but also tested in Safari)

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status

Ready to release

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions