-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix/HIV app and Guppy #558
Conversation
@@ -38,6 +38,10 @@ class ExplorerFilter extends React.Component { | |||
} | |||
} | |||
} | |||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to address a warning found in console while testing using dev.html.
Warning: ExplorerFilter.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.
return null; | ||
} | ||
|
||
componentDidUpdate() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to address a warning found in console while testing using dev.html.
Warning: ExplorerFilter: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.
deployed in https://qa-niaid.planx-pla.net |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I run this locally (qa-niaid) I get: SyntaxError: Unexpected token u in JSON at position 0
but maybe my local config is out of date? Is it deployed to qa-niaid where we can test there?
hmmm... yeah it is deployed on QA-NIAID now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me but I'd default to @ZakirG
body: JSON.stringify({ | ||
query: queryString, | ||
variables: JSON.parse(variableString), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the case where we use arranger, variableString will be undefined right? And I think that will lead to the error Uncaught SyntaxError: Unexpected token u in JSON at position 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch! fixed in 1dd7906
…ta-portal into fix/hiv-app-and-guppy
Let NIAID's HIV app support Guppy
Please make sure to follow the DEV guidelines before asking for review.
New Features
Breaking Changes
Bug Fixes
Improvements
Dependency updates
Deployment changes
is not
op for filter guppy#45 (0.2.1+) if want to use Guppy for NIAID