Skip to content
This repository was archived by the owner on Apr 4, 2021. It is now read-only.
This repository was archived by the owner on Apr 4, 2021. It is now read-only.

Cannot read property 'DisplayText' of undefined when adding many Items #2

@5pHiNxX

Description

@5pHiNxX

Adding a huge amount of strings (I added 138133 items) to the UIMenuListItem the console (F8) gets flooded with this error:

[10:26:56][Error] [V8] Exception at DemoGamemode.Client:includes/NativeUIMenu/items/UIMenuListItem.mjs:70
[10:26:56][Error]               ? this.Collection[this.Index].DisplayText
[10:26:56][Error]   TypeError: Cannot read property 'DisplayText' of undefined
    at UIMenuListItem.set Index [as Index] (includes/NativeUIMenu/items/UIMenuListItem.mjs:70:43)
    at NativeUI.GoLeft (includes/NativeUIMenu/NativeUI.mjs:200:21)
    at NativeUI.ProcessControl (includes/NativeUIMenu/NativeUI.mjs:446:18)
    at NativeUI.render (includes/NativeUIMenu/NativeUI.mjs:599:14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions