fix(app): user messages not rendering consistently
This commit is contained in:
parent
ea1aba4192
commit
30a25e4edc
5 changed files with 61 additions and 29 deletions
|
|
@ -1463,7 +1463,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
|||
draft.part[messageID] = optimisticParts
|
||||
.filter((p) => !!p?.id)
|
||||
.slice()
|
||||
.sort((a, b) => a.id.localeCompare(b.id))
|
||||
.sort((a, b) => (a.id < b.id ? -1 : a.id > b.id ? 1 : 0))
|
||||
}),
|
||||
)
|
||||
return
|
||||
|
|
@ -1481,7 +1481,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
|||
draft.part[messageID] = optimisticParts
|
||||
.filter((p) => !!p?.id)
|
||||
.slice()
|
||||
.sort((a, b) => a.id.localeCompare(b.id))
|
||||
.sort((a, b) => (a.id < b.id ? -1 : a.id > b.id ? 1 : 0))
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue