diff --git a/src/pages/DomandaEditPreInstructor/index.js b/src/pages/DomandaEditPreInstructor/index.js
index ec0b116..8ddd82e 100644
--- a/src/pages/DomandaEditPreInstructor/index.js
+++ b/src/pages/DomandaEditPreInstructor/index.js
@@ -267,9 +267,11 @@ const DomandaEditPreInstructor = () => {
switch (item.fieldName) {
case 'fileupload' :
content =
- {item.fieldValue.map(o => -
- {o.filePath ? {o.name} : null}
-
)}
+ {item.fieldValue
+ ? item.fieldValue.map(o => -
+ {o.filePath ? {o.name} : null}
+
)
+ : null}
;
break;
case 'table' :
@@ -281,9 +283,11 @@ const DomandaEditPreInstructor = () => {
- {item.fieldValue.map((o, i) =>
- {Object.values(o).map(v => | {v} | )}
-
)}
+ {item.fieldValue
+ ? item.fieldValue.map((o, i) =>
+ {Object.values(o).map(v => | {v} | )}
+
)
+ : null}
;
break;
@@ -425,7 +429,7 @@ const DomandaEditPreInstructor = () => {
const doCreateAppointmentRequest = () => {
if (
!isEmpty(appointmentData.title) && !isEmpty(appointmentData.text) && !isEmpty(appointmentData.amount)
- && !isEmpty(appointmentData.duration) && appointmentData.duration !== 0 && appointmentData.amount !== 0
+ && !isEmpty(appointmentData.duration) && appointmentData.duration !== 0 && appointmentData.amount !== 0
) {
console.log(appointmentData);
}