瀏覽代碼

Merge pull request #2555 from mattray/default

Fix default of 7 days so it doesn't report 'Custom' date range
Matt Ray 2 年之前
父節點
當前提交
61ce72836c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ui/src/Reports.js

+ 1 - 1
ui/src/Reports.js

@@ -158,7 +158,7 @@ const ReportsPage = () => {
   const searchParams = new URLSearchParams(routerLocation.search);
   const searchParams = new URLSearchParams(routerLocation.search);
   const routerHistory = useHistory();
   const routerHistory = useHistory();
   useEffect(() => {
   useEffect(() => {
-    setWindow(searchParams.get("window") || "6d");
+    setWindow(searchParams.get("window") || "7d");
     setAggregateBy(searchParams.get("agg") || "namespace");
     setAggregateBy(searchParams.get("agg") || "namespace");
     setAccumulate(searchParams.get("acc") === "true" || false);
     setAccumulate(searchParams.get("acc") === "true" || false);
     setCurrency(searchParams.get("currency") || "USD");
     setCurrency(searchParams.get("currency") || "USD");