Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Fix: column name in result table shows alias if alias exists #75

Merged
merged 2 commits into from
Jun 9, 2020
Merged

Conversation

chloe-zh
Copy link
Contributor

@chloe-zh chloe-zh commented Jun 9, 2020

Issue #, if available:

Description of changes:

  • Fixed the fix column not showing field alias

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@chloe-zh chloe-zh linked an issue Jun 9, 2020 that may be closed by this pull request
try {
alias = _.get(field, 'alias');
} catch (e) {
console.log("No alias for field " + field);

Choose a reason for hiding this comment

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

Np. I suggest using either single quote or double quote for js, not both. One reason I am more for single quote is

A single quoted string can have double quotes within it without having to escape them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, thanks for raising it!

@chloe-zh chloe-zh merged commit 724cccd into amazon-archives:master Jun 9, 2020
chloe-zh added a commit that referenced this pull request Aug 5, 2020
* Fix: column name in result table shows alias if alias exists (#75)

* fix issue of column name not showing alias

* update

* (#84) Fix: use column name if alias is an empty string
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Column name in table header doesn't use field alias
2 participants