Skip to content

Chat Options Error When Talking to NPC Without Dialogue #739

@AntumDeluge

Description

@AntumDeluge

🐞 Describe the bug

Came across the following error in web client when attempting to talk with an NPC without dialogue:

Uncaught TypeError: $module$build$ts$util$Chat$default$$.$Chat$.options[0] is undefined
    $execute$ ChatOptionsEvent.ts:43
    $onEvent$ RPObject.ts:36
    $addChanges$ perception.js:424
    $applyPerceptionMyRPObject$ perception.js:283
    apply perception.js:170
    $onPerception$ client-framework.js:210
    t19 message-factory.js:57
    $onMessage$ client-framework.js:114
3 ChatOptionsEvent.ts:43:34
    $execute$ ChatOptionsEvent.ts:43
    $onEvent$ RPObject.ts:36
    $addChanges$ perception.js:424
    $applyPerceptionMyRPObject$ perception.js:283
    apply perception.js:170
    $onPerception$ client-framework.js:210
    t19 message-factory.js:57
    $onMessage$ client-framework.js:114

Not a serious error as generally there are no SpeakerNPC instances without dialogue. But probably should be handled anyway.

🌍 Environment

  • Web client

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: webclientRelated to the web client.type: bugCauses a negative impact or not working as intended.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions