Fix js error thrown when switching between dashboard and another page
This commit is contained in:
@@ -25,6 +25,17 @@
|
|||||||
debounce(() => window.dispatchEvent(new Event('resize')))
|
debounce(() => window.dispatchEvent(new Event('resize')))
|
||||||
})
|
})
|
||||||
</script>
|
</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>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -1,14 +1,3 @@
|
|||||||
<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>
|
|
||||||
|
|
||||||
<div class="w-full grid grid-cols-1 xl:grid-cols-3 2xl:grid-cols-3 gap-4">
|
<div class="w-full grid grid-cols-1 xl:grid-cols-3 2xl:grid-cols-3 gap-4">
|
||||||
{% for p in model['People'] %}
|
{% for p in model['People'] %}
|
||||||
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8 ">
|
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8 ">
|
||||||
|
|||||||
Reference in New Issue
Block a user