make linter happy
This commit is contained in:
@@ -23,6 +23,7 @@ import { ServerCommand, ServerProcessResponse } from "../../synapse/dataProvider
|
||||
import { Icons } from "../../utils/icons";
|
||||
|
||||
const renderIcon = (icon: string) => {
|
||||
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
||||
const IconComponent = Icons[icon] as React.ComponentType<any> | undefined;
|
||||
return IconComponent ? <IconComponent sx={{ verticalAlign: "middle", mr: 1 }} /> : null;
|
||||
};
|
||||
@@ -80,6 +81,7 @@ const ServerCommandsPanel = () => {
|
||||
// Update server process status
|
||||
await updateServerProcessStatus(serverCommands[command]);
|
||||
} catch (error) {
|
||||
console.error("Error running command:", error);
|
||||
setCommandIsRunning(false);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user