Explorar o código

Merge branch 'develop' of http://192.168.0.253:3000/bozzysadmb/ISCS-Client-V1.0 into develop

pm hai 5 meses
pai
achega
8b06416d8c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/FormDesigner.tsx

+ 1 - 1
src/components/FormDesigner.tsx

@@ -641,7 +641,7 @@ export default function FormDesigner() {
   const markDirty = () => setHasUnsavedChanges(true);
   
   const handleBack = () => {
-    if (!hasUnsavedChanges) {
+    if (!hasUnsavedChanges || fields.length === 0) {
       navigate(-1);
       return;
     }