MCPcopy Create free account
hub / github.com/chartbrew/chartbrew / _onCreateDataset

Function _onCreateDataset

client/src/containers/AddChart/AddChart.jsx:228–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226 };
227
228 const _onCreateDataset = async () => {
229 setCreatingNewDataset(true);
230
231 try {
232 const chart = await _createChart(AUTO_NAME_PLACEHOLDER);
233 _rememberPendingChartName(chart.id);
234 navigate(`/datasets/new?create=true&project_id=${params.projectId}&chart_id=${chart.id}`);
235 } catch (error) {
236 toast.error("Oups! Can't start the chart setup. Please try again.");
237 } finally {
238 setCreatingNewDataset(false);
239 }
240 };
241
242 const _onChangeGlobalSettings = ({
243 pointRadius, displayLegend, dateRange, includeZeros, timeInterval, currentEndDate,

Callers

nothing calls this directly

Calls 2

_createChartFunction · 0.85

Tested by

no test coverage detected