Revert "UI Console Errors and Git Errors Fixes, + recommendations"

This reverts commit 1e9cd5eb13.
This commit is contained in:
Extremesecrecy
2025-07-24 09:40:20 -07:00
parent 788bfad6ab
commit b82958d8e6
11 changed files with 49 additions and 79 deletions
+5 -5
View File
@@ -62,14 +62,14 @@ const AboutDialog = class extends Component<AboutDialogProps, AboutDialogState>
.then(jackStatus => {
this.setState({ jackStatus: jackStatus });
})
.catch(() => { /* ignore*/ });
.catch(_error => { /* ignore*/ });
}
}
timerHandle?: number;
updateNotifications() {
const subscribed = this.mounted && this.props.open;
let subscribed = this.mounted && this.props.open;
if (subscribed !== this.subscribed) {
if (subscribed) {
this.timerHandle = setInterval(() => this.tick(), 1000);
@@ -116,12 +116,12 @@ const AboutDialog = class extends Component<AboutDialogProps, AboutDialogState>
this.mounted = false;
this.updateNotifications();
}
componentDidUpdate(prevProps: Readonly<AboutDialogProps>, prevState: Readonly<AboutDialogState>, snapshot: unknown): void {
componentDidUpdate(prevProps: Readonly<AboutDialogProps>, prevState: Readonly<AboutDialogState>, snapshot: any): void {
super.componentDidUpdate?.(prevProps, prevState, snapshot);
this.updateNotifications();
}
handleDialogClose() {
handleDialogClose(_e: SyntheticEvent) {
this.props.onClose();
}
@@ -129,7 +129,7 @@ const AboutDialog = class extends Component<AboutDialogProps, AboutDialogState>
render() {
let addressKey = 0;
let serverVersion = this.model.serverVersion?.serverVersion ?? "";
const nPos = serverVersion.indexOf(' ');
let nPos = serverVersion.indexOf(' ');
if (nPos !== -1) {
serverVersion = serverVersion.substring(nPos + 1);
}