Skip to content

Autosave changes of forms' sections #188#196

Open
annapakula wants to merge 4 commits into
react_devfrom
feature/automatic_save_changes_of_section_188
Open

Autosave changes of forms' sections #188#196
annapakula wants to merge 4 commits into
react_devfrom
feature/automatic_save_changes_of_section_188

Conversation

@annapakula
Copy link
Copy Markdown
Collaborator

No description provided.

@annapakula annapakula requested a review from adam-sas-on March 11, 2021 17:13

let newSections2 = newSections.map( (section) => {
if(section.hasOwnProperty('isNew') )
section.isNew = false;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was (still is) necessary to set the section not being new when the POST request was done as it is not new on the server anymore. By removing/commenting this you make the request being constantly POST for already created sections so whenever yous clicks "Zapisz pytania" the server will duplicate them. We are working on this duplication and it is issue #180 .
So in short: it makes the request being POST only once and only for sections the user created by click of corresponding button on the right panel.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I didn't notice duplication on my computer. I will redo this change.

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

Successfully merging this pull request may close these issues.

2 participants