diff --git a/devtools-frontend/src/components/Layout.tsx b/devtools-frontend/src/components/Layout.tsx index ad0a7313..c1edb332 100644 --- a/devtools-frontend/src/components/Layout.tsx +++ b/devtools-frontend/src/components/Layout.tsx @@ -34,7 +34,7 @@ const TelemetryListSidebar: React.FC = ({ }) => { const recorder = (useLoaderData() as ClientContext).client; const [recorderStatus, setRecordingStatus] = useState( - null + null, ); useEffect(() => { const readerP = recorder @@ -120,15 +120,15 @@ const TelemetryListSidebar: React.FC = ({ }`} > toggleRecordingStatus(item.name)}> - {recorderStatus?.recordingTelemetries.has(item.name) - ?
-
-
- :
-
-
- - } + {recorderStatus?.recordingTelemetries.has(item.name) ? ( +
+
+
+ ) : ( +
+
+
+ )}
{ const items: TelemetryMenuItem[] = []; const channelNames = Object.keys(ctx.satelliteSchema.telemetryChannels); for (const [componentName, componentSchema] of Object.entries( - ctx.satelliteSchema.telemetryComponents + ctx.satelliteSchema.telemetryComponents, )) { for (const [telemetryName, telemetrySchema] of Object.entries( - componentSchema.telemetries + componentSchema.telemetries, )) { for (const channelName of channelNames) { const name = `${channelName}.${componentName}.${telemetryName}`; diff --git a/devtools-frontend/src/components/TelemetryView.tsx b/devtools-frontend/src/components/TelemetryView.tsx index b987596b..34517b71 100644 --- a/devtools-frontend/src/components/TelemetryView.tsx +++ b/devtools-frontend/src/components/TelemetryView.tsx @@ -203,9 +203,7 @@ export const TelemetryView: React.FC = () => { } }; - - - const recording = + const recording = recorderStatus?.recordingTelemetries?.has(tmivName) ?? false; const recordingMenuItemsWhenRecording = ( diff --git a/devtools-frontend/tsconfig.json b/devtools-frontend/tsconfig.json index 901a3243..1d430f30 100644 --- a/devtools-frontend/tsconfig.json +++ b/devtools-frontend/tsconfig.json @@ -6,7 +6,7 @@ }, "target": "ESNext", "lib": ["DOM", "DOM.Iterable", "ESNext", "WebWorker"], - "types": ["vite/client", "@types/wicg-file-system-access" ], + "types": ["vite/client", "@types/wicg-file-system-access"], "allowJs": false, "skipLibCheck": false, "esModuleInterop": false,