comment out pagespeed check, TODO later

This commit is contained in:
Alex Holliday committed 2025-06-13 10:13:22 +08:00
1 parent a63bcb5b4a
commit 1542cf01a7
2 files changed
+2 -4

No files matched your search

@@ -21,7 +21,6 @@ const PageSpeed = () => {
const { t } = useTranslation(); const { t } = useTranslation();
const isAdmin = useIsAdmin(); const isAdmin = useIsAdmin();
const { user } = useSelector((state) => state.auth); const { user } = useSelector((state) => state.auth);
const { pagespeedApiKey } = useSelector((state) => state.settings);
const [monitors, monitorsSummary, isLoading, networkError] = useFetchMonitorsByTeamId({ const [monitors, monitorsSummary, isLoading, networkError] = useFetchMonitorsByTeamId({
teamId: user.teamId, teamId: user.teamId,
@@ -60,7 +59,7 @@ const PageSpeed = () => {
]} ]}
link="/pagespeed/create" link="/pagespeed/create"
isAdmin={isAdmin} isAdmin={isAdmin}
showPageSpeedWarning={isAdmin && !pagespeedApiKey} // showPageSpeedWarning={isAdmin && !pagespeedApiKey}
/> />
); );
} }
+1 -2
View File
@@ -6,8 +6,7 @@ class Logger {
constructor() { constructor() {
let logLevel = LOG_LEVEL; let logLevel = LOG_LEVEL;
this.unsubscribe = store.subscribe(() => { this.unsubscribe = store.subscribe(() => {
const state = store.getState(); logLevel = "debug";
logLevel = state.settings.logLevel || "debug";
this.updateLogLevel(logLevel); this.updateLogLevel(logLevel);
}); });
} }