Add trailing commas to fallback calls

Add trailing commas to the arguments passed to fallbackToSDLiveview in ui/src/pages/Dashboard/Dashboard.jsx. This is a non-functional formatting change applied to the WebRTC initialization, ICE candidate handling, and connection-state fallback calls to align with the project's code style/formatter.
This commit is contained in:
Cédric Verstraeten
2026-03-09 21:34:17 +01:00
parent 5475b79459
commit 76a136abc9

View File

@@ -339,7 +339,7 @@ class Dashboard extends React.Component {
}); });
} catch (error) { } catch (error) {
this.fallbackToSDLiveview( this.fallbackToSDLiveview(
`Unable to initialise WebRTC liveview: ${error.message}` `Unable to initialise WebRTC liveview: ${error.message}`,
); );
} }
} }
@@ -359,7 +359,7 @@ class Dashboard extends React.Component {
await this.webrtcPeerConnection.addIceCandidate(candidateInit); await this.webrtcPeerConnection.addIceCandidate(candidateInit);
} catch (error) { } catch (error) {
this.fallbackToSDLiveview( this.fallbackToSDLiveview(
`Unable to add remote ICE candidate: ${error.message}` `Unable to add remote ICE candidate: ${error.message}`,
); );
return; return;
} }
@@ -421,7 +421,7 @@ class Dashboard extends React.Component {
connectionState === 'closed' connectionState === 'closed'
) { ) {
this.fallbackToSDLiveview( this.fallbackToSDLiveview(
`WebRTC connection ${connectionState}, falling back to SD liveview.` `WebRTC connection ${connectionState}, falling back to SD liveview.`,
); );
} }
}; };