fix(ui): use correct field name for prompt clone title suffix (#25800)
This commit is contained in:
1 file changed
+1
-1
@@ -132,7 +132,7 @@
|
|||||||
const cloneHandler = async (prompt) => {
|
const cloneHandler = async (prompt) => {
|
||||||
const clonedPrompt = { ...prompt };
|
const clonedPrompt = { ...prompt };
|
||||||
|
|
||||||
clonedPrompt.title = `${clonedPrompt.title} (Clone)`;
|
clonedPrompt.name = `${clonedPrompt.name} (Clone)`;
|
||||||
const baseCommand = clonedPrompt.command.startsWith('/')
|
const baseCommand = clonedPrompt.command.startsWith('/')
|
||||||
? clonedPrompt.command.substring(1)
|
? clonedPrompt.command.substring(1)
|
||||||
: clonedPrompt.command;
|
: clonedPrompt.command;
|
||||||
|
|||||||
Reference in new issue
Block a user