Fixes graphs

main
Yasen Pramatarov 2024-11-05 18:26:25 +02:00
parent f59c758fbc
commit 04e89ddca9
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
<?php if ($page === 'agents') { ?>
<script src="<?= htmlspecialchars($app_root) ?>static/agents.js"></script>
<?php } ?>
<?php if ($page === 'graphs') { ?>
<?php if ($page === 'data' && $item === 'graphs') { ?>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/moment@2.29.1"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-moment@1.0.0"></script>