fix(ui): use correct field name for prompt clone title suffix (#25800)

This commit is contained in:
G30 2026-06-29 05:25:21 -04:00 committed by GitHub
parent ab84bbf08c
commit ea6d02da0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,7 +132,7 @@
const cloneHandler = async (prompt) => {
const clonedPrompt = { ...prompt };
clonedPrompt.title = `${clonedPrompt.title} (Clone)`;
clonedPrompt.name = `${clonedPrompt.name} (Clone)`;
const baseCommand = clonedPrompt.command.startsWith('/')
? clonedPrompt.command.substring(1)
: clonedPrompt.command;