MM-15428 Return empty object for native managed configuration when not set (#2770)

This commit is contained in:
Elias Nahum
2019-05-06 12:20:08 -04:00
committed by Miguel Alatzar
parent 0b74be530f
commit d8a76946f3
10 changed files with 19 additions and 15 deletions

View File

@@ -84,7 +84,7 @@ export default class MarkdownCodeBlock extends React.PureComponent {
const config = mattermostManaged.getCachedConfig();
if (config.copyAndPasteProtection !== 'true') {
if (config?.copyAndPasteProtection !== 'true') {
const cancelText = formatMessage({id: 'mobile.post.cancel', defaultMessage: 'Cancel'});
const actionText = formatMessage({id: 'mobile.markdown.code.copy_code', defaultMessage: 'Copy Code'});
BottomSheet.showBottomSheetWithOptions({