We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84456b0 commit e808e0dCopy full SHA for e808e0d
src/components/metadata/MetaField.js
@@ -7,12 +7,9 @@ import MetaButtons from './MetaButtons';
7
8
export class MetaField extends Component {
9
10
- componentDidMount(){
11
- const { fieldKey } = this.props;
12
- const isNewField = /New field/.test(fieldKey);
13
- if(isNewField){
14
- this.refs.field_key.select();
15
- }
+ componentDidMount() {
+ const isNewField = /New field/.test(this.props.fieldKey);
+ isNewField && this.refs.field_key.select();
16
}
17
18
handleConvertClick(type) {
0 commit comments