diff --git a/apps/documenteditor/mobile/src/view/settings/DocumentInfo.jsx b/apps/documenteditor/mobile/src/view/settings/DocumentInfo.jsx index be1a4e671..fe45f5191 100644 --- a/apps/documenteditor/mobile/src/view/settings/DocumentInfo.jsx +++ b/apps/documenteditor/mobile/src/view/settings/DocumentInfo.jsx @@ -40,7 +40,7 @@ const PageDocumentInfo = (props) => { return ( - {dataDoc.title ? ( + {dataDoc?.title ? ( {_t.textDocumentTitle} @@ -48,7 +48,7 @@ const PageDocumentInfo = (props) => { ) : null} - {dataDoc.info.author || dataDoc.info.owner ? ( + {dataDoc?.info?.author || dataDoc?.info?.owner ? ( {_t.textOwner} @@ -56,7 +56,7 @@ const PageDocumentInfo = (props) => { ) : null} - {dataDoc.info.folder ? ( + {dataDoc?.info?.folder ? ( {_t.textLocation} @@ -64,7 +64,7 @@ const PageDocumentInfo = (props) => { ) : null} - {dataDoc.info.uploaded || dataDoc.info.created ? ( + {dataDoc?.info?.uploaded || dataDoc?.info?.created ? ( {_t.textUploaded} diff --git a/apps/presentationeditor/mobile/src/view/settings/PresentationInfo.jsx b/apps/presentationeditor/mobile/src/view/settings/PresentationInfo.jsx index 325374c06..34e904e8e 100644 --- a/apps/presentationeditor/mobile/src/view/settings/PresentationInfo.jsx +++ b/apps/presentationeditor/mobile/src/view/settings/PresentationInfo.jsx @@ -13,7 +13,7 @@ const PagePresentationInfo = (props) => { return ( - {dataDoc.title ? ( + {dataDoc?.title ? ( {_t.textPresentationTitle} @@ -21,7 +21,7 @@ const PagePresentationInfo = (props) => { ) : null} - {dataDoc.info.author || dataDoc.info.owner ? ( + {dataDoc?.info?.author || dataDoc?.info?.owner ? ( {_t.textOwner} @@ -29,7 +29,7 @@ const PagePresentationInfo = (props) => { ) : null} - {dataDoc.info.folder ? ( + {dataDoc?.info?.folder ? ( {_t.textLocation} @@ -37,7 +37,7 @@ const PagePresentationInfo = (props) => { ) : null} - {dataDoc.info.uploaded || dataDoc.info.created ? ( + {dataDoc?.info?.uploaded || dataDoc?.info?.created ? ( {_t.textUploaded} diff --git a/apps/spreadsheeteditor/mobile/src/view/settings/SpreadsheetInfo.jsx b/apps/spreadsheeteditor/mobile/src/view/settings/SpreadsheetInfo.jsx index cb92430a4..464f8696e 100644 --- a/apps/spreadsheeteditor/mobile/src/view/settings/SpreadsheetInfo.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/settings/SpreadsheetInfo.jsx @@ -16,7 +16,7 @@ const PageSpreadsheetInfo = (props) => { return ( - {dataDoc.title ? ( + {dataDoc?.title ? ( {_t.textSpreadsheetTitle} @@ -24,7 +24,7 @@ const PageSpreadsheetInfo = (props) => { ) : null} - {dataDoc.info.author || dataDoc.info.owner ? ( + {dataDoc?.info?.author || dataDoc?.info?.owner ? ( {_t.textOwner} @@ -32,7 +32,7 @@ const PageSpreadsheetInfo = (props) => { ) : null} - {dataDoc.info.folder ? ( + {dataDoc?.info?.folder ? ( {_t.textLocation} @@ -40,7 +40,7 @@ const PageSpreadsheetInfo = (props) => { ) : null} - {dataDoc.info.uploaded || dataDoc.info.created ? ( + {dataDoc?.info?.uploaded || dataDoc?.info?.created ? ( {_t.textUploaded}