Skip to content

Commit

Permalink
cypress test issue: trying to fix error of conflicting graphql versio…
Browse files Browse the repository at this point in the history
…ns. using workaround described here: graphql/graphql-js#1182 (comment) NODE_ENV=production
  • Loading branch information
schuyler1d committed Jul 13, 2021
1 parent 746fda0 commit 48682c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cypress-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Cypress run
uses: cypress-io/github-action@v2
env:
NODE_ENV: test
NODE_ENV: production
PORT: 3001
OUTPUT_DIR: ./build
ASSETS_DIR: ./build/client/assets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class AdminConfig extends React.Component {
if (!this.props.settingsData.takeConversationsBatchSize) {
defaults.takeConversationsBatchSize = 20;
}
if (Object.values(defaults).length) {
if (Object.values(defaults).length && this.props.setDefaults) {
this.props.setDefaults(defaults);
}
}
Expand Down

0 comments on commit 48682c9

Please sign in to comment.