Skip to content

Commit

Permalink
fix: remove value property from RS query for ReactiveComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
bietkul committed Jul 20, 2020
1 parent 469d224 commit b7601f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ export const extractPropsFromState = (store, component, customOptions) => {
// Fake dataField for ReactiveComponent
if (componentProps.componentType === componentTypes.reactiveComponent) {
dataField = 'reactive_component_field';
// Don't set value property for ReactiveComponent
// since it is driven by `defaultQuery` and `customQuery`
value = undefined;
}
// Assign default value as an empty string for search components so search relevancy can work
if (isSearchComponent(componentProps.componentType) && !value) {
Expand Down

0 comments on commit b7601f6

Please sign in to comment.