-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add refactored table with search and sort function #27
Add refactored table with search and sort function #27
Conversation
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.
Love the tables! Really cool! Have a couple nits and some sync issues to clarify...
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.
Besides the synchronization loop issue, LGTM.
window.location.reload(); | ||
i = 0; | ||
Promise.all(promises) | ||
.then(responses => responses.forEach(response => { |
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.
forEach
here still creates sync issues because each element isnt independent in its processing. a regular for loop should work here.
this.props.agentsListUpdate(this.props.globalagentsList.filter(el => | ||
el.id.trust_domain !== id[i].trust_domain || | ||
el.id.path !== id[i].path)); | ||
i++; |
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.
double i++
increment.
Build error:
|
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.
LGTM! Looks great!
https://github.com/lumjjb/tornjak/issues/25