Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan committed Dec 16, 2024
1 parent f18207f commit d09b1b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/screens/Thread/ThreadCenterPanel/EditChatInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ const EditChatInput: React.FC<Props> = ({ message }) => {
}, [editPrompt])

useEffect(() => {
setEditPrompt(message.content[0]?.text?.value)
if (message.content?.[0]?.text?.value)
setEditPrompt(message.content[0].text.value)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])

Expand Down

0 comments on commit d09b1b7

Please sign in to comment.