diff --git a/src/components/modals/device/Duplicate/index.js b/src/components/modals/device/Duplicate/index.js index 9aeea355..89b2e0e2 100644 --- a/src/components/modals/device/Duplicate/index.js +++ b/src/components/modals/device/Duplicate/index.js @@ -63,12 +63,6 @@ const ErrorMessage = styled.div` `; export default class DuplicateDevice extends Component { - state: State; - - input: ?HTMLInputElement; - - keyboardHandler: (event: KeyboardEvent) => void; - constructor(props: Props) { super(props); @@ -85,6 +79,12 @@ export default class DuplicateDevice extends Component { }; } + state: State; + + input: ?HTMLInputElement; + + keyboardHandler: (event: KeyboardEvent) => void; + componentDidMount(): void { // one time autofocus if (this.input) this.input.focus(); diff --git a/webpack/production.babel.js b/webpack/production.babel.js index f126736c..63294226 100644 --- a/webpack/production.babel.js +++ b/webpack/production.babel.js @@ -65,7 +65,7 @@ module.exports = { plugins: [ new webpack.DefinePlugin({ 'process.env.BUILD': JSON.stringify(process.env.BUILD), - COMMITHASH: JSON.stringify(gitRevisionPlugin.commithash() + COMMITHASH: JSON.stringify(gitRevisionPlugin.commithash()), }), new HtmlWebpackPlugin({ chunks: ['index'],