-
Notifications
You must be signed in to change notification settings - Fork 16
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
Remove lock in CategoryWidget if selected categories change #231
Conversation
padawannn
commented
Nov 30, 2021
•
edited
Loading
edited
- For the category widget, unlock the widget if there are not a selected category
Pull Request Test Coverage Report for Build 1526760560
💛 - Coveralls |
* @param {id} - sourceId of the filter to remove | ||
* @param {owner} - widgetId of the filter to remove | ||
*/ | ||
export const removeFilterByOwner = ({ id, owner }) => ({ |
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.
Owner is the internal name, but I would probably suggest something more clear for the end user, like 'removeFilterFromWidget ({ sourceId, widgetId })
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.
Also, I'm wondering if we need the sourceId, or if we can just iterate on all sources, without asking for the param, Does this make sense?
Can a widget affect several sources? I don't think so... right?
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.
You're right. I did it like this because it made my life easier for the integration with builder but it would be better to remove it
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.
Thinking better of it, this action is not necessary. Removed
e1c007c
to
2fbbec5
Compare
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