MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / handlePromptSave

Function handlePromptSave

src/components/CronJobCard.tsx:312–327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310 }, [promptText, isEditingPrompt]);
311
312 const handlePromptSave = async () => {
313 const trimmedPrompt = draftPrompt.trim();
314 if (!trimmedPrompt || trimmedPrompt === promptText) {
315 setIsEditingPrompt(false);
316 setDraftPrompt(promptText);
317 return;
318 }
319
320 setIsSavingPrompt(true);
321 try {
322 await onSavePrompt(job.id, trimmedPrompt);
323 setIsEditingPrompt(false);
324 } finally {
325 setIsSavingPrompt(false);
326 }
327 };
328
329 return (
330 <div

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected