Skip to content

Commit

Permalink
fix(playground): Dynamic dashboard templated doesn't work: graphql-to…
Browse files Browse the repository at this point in the history
…ols version downgrade (#665)

Fixes #661
  • Loading branch information
vasilev-alex committed May 25, 2020
1 parent 71f2d8c commit f5dfe54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cubejs-server-core/dev/templates/AppContainer.js
Expand Up @@ -140,7 +140,10 @@ class AppContainer {
if (!packageJson || !packageJson.dependencies) {
return [];
}
const toInstall = Object.keys(dependencies).filter(dependency => !packageJson.dependencies[dependency]);
const toInstall = Object.keys(dependencies)
.filter(dependency => !packageJson.dependencies[dependency])
.map((dependency) => (dependency === 'graphql-tools' ? `${dependency}@5.0.0` : dependency));

if (toInstall.length) {
await this.executeCommand(
'npm',
Expand Down

0 comments on commit f5dfe54

Please sign in to comment.