mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 19:21:33 +02:00
Fixed timer issue in debug log collection
This commit is contained in:
@@ -105,8 +105,9 @@ export function SystemInfoPage() {
|
||||
const handleToggleDebugLogging = async () => {
|
||||
setDebugToggling(true);
|
||||
try {
|
||||
await supportApi.setDebugLogging(!debugLoggingState?.enabled);
|
||||
queryClient.invalidateQueries({ queryKey: ['debugLogging'] });
|
||||
const newState = await supportApi.setDebugLogging(!debugLoggingState?.enabled);
|
||||
// Immediately update the cache with the new state (includes fresh enabled_at timestamp)
|
||||
queryClient.setQueryData(['debugLogging'], newState);
|
||||
} catch (err) {
|
||||
console.error('Failed to toggle debug logging:', err);
|
||||
} finally {
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -23,7 +23,7 @@
|
||||
|
||||
<!-- Splash screens for iOS -->
|
||||
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
|
||||
<script type="module" crossorigin src="/assets/index-BXGONv-e.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-CCnKMi2S.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CrUIX1oi.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user