mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +00:00
Removed refresh intervals
This commit is contained in:
parent
365783204a
commit
2c3947ea3f
1 changed files with 2 additions and 6 deletions
|
@ -5,12 +5,8 @@ import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||||
export default function Component({ service }) {
|
export default function Component({ service }) {
|
||||||
const { widget } = service;
|
const { widget } = service;
|
||||||
|
|
||||||
const { data: printerStats, error: printerStatsError } = useWidgetAPI(widget, "printer_stats", {
|
const { data: printerStats, error: printerStatsError } = useWidgetAPI(widget, "printer_stats");
|
||||||
refreshInterval: 1500,
|
const { data: jobStats, error: jobStatsError } = useWidgetAPI(widget, "job_stats");
|
||||||
});
|
|
||||||
const { data: jobStats, error: jobStatsError } = useWidgetAPI(widget, "job_stats", {
|
|
||||||
refreshInterval: 1500,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (printerStatsError) {
|
if (printerStatsError) {
|
||||||
return <Container error={printerStatsError} />;
|
return <Container error={printerStatsError} />;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue