()
| 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, |
nothing calls this directly
no test coverage detected