Skip to content

after submit #1

Open
Open

Description

@postescu

After submit the Pizzas order
image
list will not display the toppings. It resets and displays it on click

Activity

  1. GuillaumeGSO commented on May 2, 2019

    @GuillaumeGSO

    Hi,
    i corrected this issue by using clones, otherwise the original ToppingItem[ ] is modified while preparing the DTO object.
    createPizzaOrderDto(data: IPizzaFormInterface): IPizzaFormInterface { const order = { customerDetails: this.simpleClone(data.customerDetails), pizzas: this.simpleClone(data.pizzas) };
    [...]
    simpleClone(obj: any) { return Object.assign({}, obj); }

    But i'm not allowed to make a pull request...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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