Skip to content
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

Fixes #469 - query results error out if no custom font is set #470

Closed
wants to merge 3 commits into from

Conversation

rathboma
Copy link
Member

@rathboma rathboma commented May 3, 2019

  • if no custom font has been set from the settings modal you are unable to see query results
  • this fixes the issue by defaulting the custom font to the default font

Fixes #469

- if no custom font has been set from the settings modal, the app crashes.
- this fixes the issue by defaulting the custom font to the default font
@rathboma rathboma changed the title Fixes #469 - app crashes if no custom font is set Fixes #469 - query results error out if no custom font is set May 3, 2019
@rathboma
Copy link
Member Author

rathboma commented May 3, 2019

Not sure what this build failure is about -- seems maybe related to a library upgrade?

@rathboma
Copy link
Member Author

rathboma commented May 3, 2019

Ah, looks like the Travis build is running on node 6 - - nvm install 6 in the config, but there are some async functions in the code.

const { customFont } = this.props.config.data.customFont;
const font = `14px '${customFont}', 'Helvetica Neue', Arial, Helvetica, sans-serif`;
const customFont = this.props.config.data.customFont || 'Helvetica Neue';
const font = `14px '${customFont}' 'Helvetica Neue', Arial, Helvetica, sans-serif`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You removed the , from the customFont. I think the comma is required there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes you are correct. I will fix that.

Copy link
Member

@maxcnunes maxcnunes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@MasterOdin
Copy link
Member

Manually merged in df70052

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running a query results in the error "Cannot match against 'undefined' or 'null'."
3 participants