VolkovLabs / business-forms

The Business Forms panel is a conceptually new plugin for Grafana. It is the first plugin that allows inserting and updating application data, as well as modifying configuration directly from your Grafana dashboard.
https://docs.volkovlabs.io
Apache License 2.0
86 stars 10 forks source link

Syntax error in documentation #365

Closed craftzneko closed 8 months ago

craftzneko commented 8 months ago

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;
}));