MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / _addOption

Function _addOption

client/src/sources/api/api-connection-form.jsx:171–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169 };
170
171 const _addOption = () => {
172 const option = {
173 id: uuid(),
174 key: "",
175 value: "",
176 };
177
178 setConnection({ ...connection, optionsArray: [...connection.optionsArray, option] });
179 };
180
181 const _removeOption = (id) => {
182 const tempOptions = connection.optionsArray;

Callers 1

ApiConnectionFormFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected