소스 검색

Removed refresh intervals

williamwoldum 2 년 전
부모
커밋
2c3947ea3f
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 6
      src/widgets/octoPrint/component.jsx

+ 2 - 6
src/widgets/octoPrint/component.jsx

@@ -5,12 +5,8 @@ import useWidgetAPI from "utils/proxy/use-widget-api";
 export default function Component({ service }) {
   const { widget } = service;
 
-  const { data: printerStats, error: printerStatsError } = useWidgetAPI(widget, "printer_stats", {
-    refreshInterval: 1500,
-  });
-  const { data: jobStats, error: jobStatsError } = useWidgetAPI(widget, "job_stats", {
-    refreshInterval: 1500,
-  });
+  const { data: printerStats, error: printerStatsError } = useWidgetAPI(widget, "printer_stats");
+  const { data: jobStats, error: jobStatsError } = useWidgetAPI(widget, "job_stats");
 
   if (printerStatsError) {
     return <Container error={printerStatsError} />;