diff --git a/frontend/src/components/dialog/create-file-dialog.js b/frontend/src/components/dialog/create-file-dialog.js index be18c2ea6b..39d8fe6447 100644 --- a/frontend/src/components/dialog/create-file-dialog.js +++ b/frontend/src/components/dialog/create-file-dialog.js @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Form, FormGroup, Label, Alert } from 'reactstrap'; -import { gettext } from '../../utils/constants'; +import { gettext, isDocs } from '../../utils/constants'; import { Utils } from '../../utils/utils'; const propTypes = { @@ -136,7 +136,7 @@ class CreateFile extends React.Component { onChange={this.handleChange} /> - {this.props.fileType == '.md' && ( + {this.props.fileType == '.md' && isDocs && (