diff --git a/src/webapp/components/form-page/FormPage.tsx b/src/webapp/components/form-page/FormPage.tsx index 300784ad..6fa37af9 100644 --- a/src/webapp/components/form-page/FormPage.tsx +++ b/src/webapp/components/form-page/FormPage.tsx @@ -12,7 +12,7 @@ type FormPageProps = { cancelLabel?: string; children: React.ReactNode; onSave: () => void; - onCancel: () => void; + onCancel?: () => void; }; export const FormPage: React.FC = React.memo( @@ -31,9 +31,11 @@ export const FormPage: React.FC = React.memo( - + {onCancel && ( + + )}