forked from Ivasoft/mattermost-mobile
MM-15428 Return empty object for native managed configuration when not set (#2770)
This commit is contained in:
committed by
Miguel Alatzar
parent
0b74be530f
commit
d8a76946f3
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user