Fix js error thrown when switching between dashboard and another page

This commit is contained in:
Peter Stockings
2022-12-04 22:08:05 +11:00
parent 27ababda27
commit c030ff4448
2 changed files with 11 additions and 11 deletions

View File

@@ -25,6 +25,17 @@
debounce(() => window.dispatchEvent(new Event('resize')))
})
</script>
<script>
let layout = {
margin: { t: 0 }, xaxis: { type: 'date', showgrid: false }, yaxis: {
title: 'Estimated 1RM (kg)',
showgrid: false
}
};
let config = { responsive: true, displayModeBar: false };
let hovertemplate = '<i>Estimated 1RM</i>: <b>%{y}kg</b><br><i>Topset</i>:<b>%{text}</b><br><i>Date</i>: <b>%{x}</b>';
</script>
</head>
<body>