Job Summary :
const handleFileDelete = async (docId : string) =>
try {
setIsAnalyzing(true);
const res = await fetch(
`${process.env.NEXT_PUBLIC_API_URL} / api / proposals / ${proposalId} / files / ${encodeURIComponent(docId)}`,
{ method : 'DELETE' }
);
if (!res.ok) throw new Error(data.error ?? 'Failed to delete file');
toast({ title : "File deleted", description : "Analysis updating..." });
/ / Re-fetch latest proposal data from parent
if (onRefresh) await onRefresh();
/ / Update analysis
document.dispatchEvent(new CustomEvent("analysisUpdated", { detail : data.analysis }));
} catch (err : any) {
toast({
variant : "destructive",
title : "Delete Failed",
description : err.message ?? "Could not delete file",
} finally {
Location : Mission Viejo, California, United States
Responsibilities :
const handleFileDelete = async (docId : string) =>
try {
setIsAnalyzing(true);
const res = await fetch(
`${process.env.NEXT_PUBLIC_API_URL} / api / proposals / ${proposalId} / files / ${encodeURIComponent(docId)}`,
{ method : 'DELETE' }
);
if (!res.ok) throw new Error(data.error ?? 'Failed to delete file');
toast({ title : "File deleted", description : "Analysis updating..." });
/ / Re-fetch latest proposal data from parent
if (onRefresh) await onRefresh();
/ / Update analysis
document.dispatchEvent(new CustomEvent("analysisUpdated", { detail : data.analysis }));
} catch (err : any) {
toast({
variant : "destructive",
title : "Delete Failed",
description : err.message ?? "Could not delete file",
} finally {
Required Skills & Certifications :
Preferred Skills & Certifications :
Special Considerations :
Scheduling :
Cardiac Sonographer • Mission Viejo, CA, United States