Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(lint): resolve eslint errors in AI chat components

rcourtman040685ba5856
diff --git a/frontend-modern/src/components/AI/Chat/MessageItem.tsx b/frontend-modern/src/components/AI/Chat/MessageItem.tsx
index a1c4c8283f..511d7103a8 100644
--- a/frontend-modern/src/components/AI/Chat/MessageItem.tsx
+++ b/frontend-modern/src/components/AI/Chat/MessageItem.tsx
@@ -171,6 +171,7 @@ export const MessageItem: Component<MessageItemProps> = (props) => {
prose-headings:text-slate-900 dark:prose-headings:text-slate-100
prose-strong:text-slate-900 dark:prose-strong:text-slate-100
prose-ul:my-2 prose-ol:my-2 prose-li:my-0.5"
+ // eslint-disable-next-line solid/no-innerhtml
innerHTML={renderMarkdown(evt.content || '')}
/>
</Match>
@@ -214,6 +215,7 @@ export const MessageItem: Component<MessageItemProps> = (props) => {
prose-headings:text-slate-900 dark:prose-headings:text-slate-100
prose-strong:text-slate-900 dark:prose-strong:text-slate-100
prose-ul:my-2 prose-ol:my-2 prose-li:my-0.5"
+ // eslint-disable-next-line solid/no-innerhtml
innerHTML={renderMarkdown(props.message.content)}
/>
</Show>
diff --git a/frontend-modern/src/components/AI/Chat/index.tsx b/frontend-modern/src/components/AI/Chat/index.tsx
index f58c817c2c..8a3b435945 100644
--- a/frontend-modern/src/components/AI/Chat/index.tsx
+++ b/frontend-modern/src/components/AI/Chat/index.tsx
@@ -259,7 +259,7 @@ export const AIChat: Component<AIChatProps> = (props) => {
if (chat.sessionId() === sessionId) {
chat.clearMessages();
}
- } catch (error) {
+ } catch (_error) {
notificationStore.error('Failed to delete session');
}
};