Syntax error in documentation
craftzneko opened this issue · 0 comments
craftzneko commented
Appologies if i missed this but couldnt see a way to submit a change on the documentation so putting here as an issues. On the https://volkovlabs.io/plugins/volkovlabs-form-panel/code/
The last example is
onChange(elements.map((element) => {
return element.id === 'name' ? { ...element, value: 'test' } : element
});
but i think it should be (it was missing a closing parenthesis at the end)
onChange(elements.map((element) => {
return element.id === 'name' ? { ...element, value: 'test' } : element;
}));