Update ChartPane per change r231087.
[WebKit.git] / Websites / perf.webkit.org / public / v3 / pages / chart-pane.js
index 5fc172fd24824722f755e2a23f8889f6e5a4a143..8cd7aa0047f7adfccd6bff404f874ce137fe3070 100644 (file)
@@ -239,9 +239,9 @@ class ChartPane extends ChartPaneBase {
         const repetitionCount = this.content('confirm-repetition').value;
 
         try {
-            const data = await (createWithTestGroup ?
+            const analysisTask = await (createWithTestGroup ?
                 AnalysisTask.create(name, startPoint, endPoint, 'Confirm', repetitionCount) : AnalysisTask.create(name, startPoint, endPoint));
-            newWindow.location.href = router.url('analysis/task/' + data['taskId']);
+            newWindow.location.href = router.url('analysis/task/' + analysisTask.id());
             this.fetchAnalysisTasks(true);
         } catch(error) {
             newWindow.location.href = router.url('analysis/task/create', {error: error});