From 614722e29c7e97b141ec350dc7351b835bd205b5 Mon Sep 17 00:00:00 2001 From: maticzav Date: Wed, 20 Mar 2019 09:43:10 +0100 Subject: [PATCH] fix: split installation, make one wait for the other --- src/index.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 527798dc..50d88f68 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -195,10 +195,9 @@ class Emma extends React.Component, State> { async installDependencies() { this.setState({ status: 'LOADING' }) try { - await Promise.all([ - install(Object.values(this.state.dependencies), 'dependency'), - install(Object.values(this.state.dependencies), 'devDependency'), - ]) + await install(Object.values(this.state.dependencies), 'dependency') + await install(Object.values(this.state.dependencies), 'devDependency') + this.setState({ status: 'INSTALLED' }) } catch (err) { this.setState({ status: 'ERROR' })