mirror of
https://github.com/stablyai/orca.git
synced 2026-10-22 00:03:47 +00:00
fix(mobile): use idiomatic tail access
This commit is contained in:
@@ -139,7 +139,7 @@ export function useMobileNativeChatDrafts(args: {
|
||||
pendingKey,
|
||||
normalizedText,
|
||||
baselineOccurrences: countUserTextOccurrences(messagesRef.current, normalizedText),
|
||||
baselineTailMessageId: messagesRef.current[messagesRef.current.length - 1]?.id ?? null
|
||||
baselineTailMessageId: messagesRef.current.at(-1)?.id ?? null
|
||||
}
|
||||
},
|
||||
[draftKey, pendingKey]
|
||||
|
||||
Reference in New Issue
Block a user