Skip to content

Request Treament does not work #3407

@tdelc

Description

@tdelc

Describe the bug

Nothing Append when I request a treatment

To Reproduce

Steps to reproduce the behavior:

  1. Go to sickbay
  2. Admit a patient
  3. Choose a symptoms
  4. Try to click on request treatment

Additional context

The constructor of src/components/views/Sickbay/bunkDetail/scanning.jsx reads the prop scanrequest, but the rest of the code uses scanRequest. I think that this typo means the initial request state is undefined.

constructor(props) {
super(props);
this.state = {
request: props.scanrequest,
};
}

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugan issue describing a problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions