Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after submit #1

Open
postescu opened this issue Dec 16, 2018 · 1 comment
Open

after submit #1

postescu opened this issue Dec 16, 2018 · 1 comment

Comments

@postescu
Copy link

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

@GuillaumeGSO
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants