mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: Regenerate chat message #2088 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -16,8 +16,8 @@ export const buildMessageUuid = (message: Partial<Message | IMessage>) => {
|
||||
return uuid();
|
||||
};
|
||||
|
||||
export const getMessagePureId = (id: string) => {
|
||||
const strings = id.split('_');
|
||||
export const getMessagePureId = (id?: string) => {
|
||||
const strings = id?.split('_') ?? [];
|
||||
if (strings.length > 0) {
|
||||
return strings.at(-1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user