We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Only save the last change
If you add a new steps level in many stages, the tool only saves the change made in the last stage
the issue was reported in the next video
It requiere an update in the file: nerdlets/pathpoint-nerdlet/components/Modal/StepsEditor.js
add the lines with the red arrow in the image
and add the next function
CODE:
HandleOnChange = (target, value, id) => { this.setState( state => { const form = { ...state.form }; form[`step_${id}`][target] = value; const stages = this.UpdateSubSteps(value, id); return { form, stages }; }, () => { if (target === 'substeps') { this.ChangeSubsteps(id, value); } } ); if (target === 'level') { this.ChangeOrder(id, value); } }; UpdateSubSteps(value, id) { const current = { ...this.state.current }; const stages = [...this.state.stages]; const stage = stages.find(item => item.id === current.stage); const currentStep = stage.steps.find(item => item.id === id); const array = value.split(','); const sub_steps = []; array.forEach(item => { sub_steps.push({ value: item }); }); currentStep.sub_steps = [...sub_steps]; return stages; }
The text was updated successfully, but these errors were encountered:
fix: steps editor save (#74) (#75)
feef248
* Fixing issue 74 according to the published solution * Fixing Variable default type to solve issues running Unit Test
This issue was fixed on the BUG # 82
Sorry, something went wrong.
No branches or pull requests
Only save the last change
Description
If you add a new steps level in many stages, the tool only saves the change made in the last stage
Steps to Reproduce
the issue was reported in the next video
Solution
It requiere an update in the file: nerdlets/pathpoint-nerdlet/components/Modal/StepsEditor.js
add the lines with the red arrow in the image
and add the next function
CODE:
Relevant Logs / Console output
Your Environment
Additional context
The text was updated successfully, but these errors were encountered: