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

Fix new table issue #18974

Merged
merged 3 commits into from
Apr 8, 2022
Merged

Fix new table issue #18974

merged 3 commits into from
Apr 8, 2022

Conversation

abist
Copy link
Contributor

@abist abist commented Apr 8, 2022

This PR fixes #18960

Explicitly check for null or empty string for icons (didn't exist for Folder type node)

@abist abist requested review from alanrenmsft and caohai April 8, 2022 01:17
@coveralls
Copy link

coveralls commented Apr 8, 2022

Pull Request Test Coverage Report for Build 2116437966

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 42.371%

Totals Coverage Status
Change from base Build 2112186448: 0.01%
Covered Lines: 27576
Relevant Lines: 60840

💛 - Coveralls

this._tableIcon = tableInfo.tableIcon.toString() === '' ? TableIcon.Basic : tableInfo.tableIcon as TableIcon;

// default to basic if icon is null (new table) or no sub type
this._tableIcon = tableInfo.tableIcon ? tableInfo.tableIcon as TableIcon : TableIcon.Basic;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should still be able to be simplified even further to this._tableIcon = tableInfo.tableIcon || TableIcon.Basic

@abist abist merged commit 197d56a into main Apr 8, 2022
@abist abist deleted the tdesigner/newTable branch April 8, 2022 18:10
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.

New Table command raises exception and doesn't load
5 participants