-
Notifications
You must be signed in to change notification settings - Fork 20
Various changes and fixes #80
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
Conversation
SergeyRuzin
commented
Sep 22, 2021
- Made log for failed table binding more readable
- Added sample feature which does not require deployed demo app
- Fixed enabled check inverted log
- Changed package-lock dependencies to fix github alerts
| public static string GetPrintableValues(this IEnumerable<ITableRowWrapper> rows) | ||
| { | ||
| return rows.SelectMany(x => x.CellsText).Aggregate((x, y) => $"{x}, {y}"); | ||
| var values = rows.Aggregate("\r\n|", (current, row) => current + (row.CellsText.Aggregate((x, y) => $" {x} | {y}") + " |\r\n |")); |
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.
Aggregate method doesn't apply to empty or null collections and will throw exception in this case. I guess we should check rows for null/empty and throw a readable exception or empty string in this case
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.
Added check which returns "Row collection is empty" string