-
Notifications
You must be signed in to change notification settings - Fork 0
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 onDependencyChange logic #77
Conversation
for (final input in inputs) { | ||
final union = input.dependencies.map((e) => e.inputKey).toSet().union(updatedKeys.toSet()); | ||
final updatedKeysExceptInputItself = updatedKeys.toSet().difference({input.inputKey}); |
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.
Proč tu musí být znovu toSet, updatedKeys už set je, ne?
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.
Upraveno
for (final input in inputs) { | ||
final union = input.dependencies.map((e) => e.inputKey).toSet().union(updatedKeys.toSet()); | ||
final updatedKeysExceptInputItself = updatedKeys.toSet().difference({input.inputKey}); |
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.
Přidat test, že se tam nepřidává daný input key?
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.
Přidal jsem několik testů
DCM report✅ no issues found! Full report: https://github.com/netglade/glade_forms/runs/35419750188 |
Fixes #76