Skip to content

Commit

Permalink
dashboard: set correct default setting for telemetry
Browse files Browse the repository at this point in the history
Fixes #8344

`Enable Service Ping` seems to be set to `false` by defaut until
the UI is re-loaded. This fixes it by also adding the retrieval
logic into `useEffect` thereby calling it everytime, even during
initial render.

Signed-off-by: Tarun Pothulapati <[email protected]>
  • Loading branch information
Pothulapati authored and roboquat committed Feb 24, 2022
1 parent 67b15c7 commit e720c49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/dashboard/src/admin/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export default function Settings() {
(async () => {
const data = await getGitpodService().server.adminGetTelemetryData();
setTelemetryData(data)

const setting = await getGitpodService().server.adminGetSettings();
setAdminSettings(setting)
})();
}, []);

Expand Down

0 comments on commit e720c49

Please sign in to comment.