mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-08 03:08:21 +00:00
fix: resolve biome lint and format errors
- Replace non-null assertions with fallback functions in dashboard-view - Prefix unused onNavigateToMemories parameter with underscore - Fix chat/index.tsx formatting Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
40f96a7b9a
commit
a8a61d3308
2 changed files with 5 additions and 5 deletions
|
|
@ -307,8 +307,8 @@ export function ChatSidebar({
|
|||
id: pendingThreadLoad.id,
|
||||
messageCount: pendingThreadLoad.messages.length,
|
||||
lastMessageId:
|
||||
pendingThreadLoad.messages[pendingThreadLoad.messages.length - 1]?.id ??
|
||||
null,
|
||||
pendingThreadLoad.messages[pendingThreadLoad.messages.length - 1]
|
||||
?.id ?? null,
|
||||
})
|
||||
setPendingThreadLoad(null)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -369,7 +369,7 @@ function RecommendedPluginsCard({
|
|||
return PLUGIN_STATIC.map((p) => ({
|
||||
...p,
|
||||
connected: connected[p.id] ?? false,
|
||||
onClick: onClicks[p.id]!,
|
||||
onClick: onClicks[p.id] ?? (() => {}),
|
||||
}))
|
||||
}, [hasMcp, connectedProviders, onOpenPlugins, onOpenIntegrations])
|
||||
|
||||
|
|
@ -537,7 +537,7 @@ function PluginPromoCard({
|
|||
return PLUGIN_STATIC.map((p) => ({
|
||||
...p,
|
||||
connected: connected[p.id] ?? false,
|
||||
onClick: onClicks[p.id]!,
|
||||
onClick: onClicks[p.id] ?? (() => {}),
|
||||
})).filter((p) => !p.connected)
|
||||
}, [hasMcp, connectedProviders, onOpenPlugins, onOpenIntegrations])
|
||||
|
||||
|
|
@ -640,7 +640,7 @@ export function DashboardView({
|
|||
onOpenSearch,
|
||||
onOpenIntegrations,
|
||||
onOpenPlugins,
|
||||
onNavigateToMemories,
|
||||
onNavigateToMemories: _onNavigateToMemories,
|
||||
onNavigateToGraph,
|
||||
onOpenDocument,
|
||||
onHighlightsChat,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue