diff --git a/src/app/bugReport/page.tsx b/src/app/bugReport/page.tsx index bd9cc58..8fe517e 100644 --- a/src/app/bugReport/page.tsx +++ b/src/app/bugReport/page.tsx @@ -74,6 +74,13 @@ const BugReport = () => { }); }; + const handleRemoveImage = (index: number) => { + setData((prevData) => ({ + ...prevData, + file_name: prevData.file_name.filter((_, i) => i !== index), + })); + }; + return ( { ) : (
{data.file_name.map((item, index) => ( - +
+ + +
))}