This commit is contained in:
@@ -48,6 +48,7 @@ type PortfolioProjectFormProps = {
|
||||
categories: PortfolioCategoryView[];
|
||||
mediaOptions: MediaOption[];
|
||||
project?: PortfolioProjectView | null;
|
||||
formId: string;
|
||||
redirectPath: string;
|
||||
submitLabel: string;
|
||||
};
|
||||
@@ -120,6 +121,7 @@ export function PortfolioProjectForm({
|
||||
categories,
|
||||
mediaOptions,
|
||||
project,
|
||||
formId,
|
||||
redirectPath,
|
||||
submitLabel,
|
||||
}: PortfolioProjectFormProps) {
|
||||
@@ -190,7 +192,7 @@ export function PortfolioProjectForm({
|
||||
);
|
||||
|
||||
return (
|
||||
<form action={action} className="space-y-6">
|
||||
<form id={formId} action={action} className="space-y-6">
|
||||
<input type="hidden" name="id" value={project?.id ?? ""} />
|
||||
<input type="hidden" name="redirectPath" value={redirectPath} />
|
||||
<input type="hidden" name="currentCoverImagePath" value={project?.coverImagePath ?? ""} />
|
||||
|
||||
Reference in New Issue
Block a user