Skip to content
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

[Maps] fix propType warnings for source with joins #48905

Merged
merged 2 commits into from
Oct 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ MetricEditor.propTypes = {
field: PropTypes.string,
label: PropTypes.string,
}),
fields: PropTypes.object, // indexPattern.fields IndexedArray object
fields: PropTypes.array,
onChange: PropTypes.func.isRequired,
metricsFilter: PropTypes.func,
};
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function MetricsEditor({ fields, metrics, onChange, allowMultipleMetrics,

MetricsEditor.propTypes = {
metrics: PropTypes.array,
fields: PropTypes.object, // indexPattern.fields IndexedArray object
fields: PropTypes.array,
onChange: PropTypes.func.isRequired,
allowMultipleMetrics: PropTypes.bool,
metricsFilter: PropTypes.func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ export function SingleFieldSelect({ fields,

SingleFieldSelect.propTypes = {
placeholder: PropTypes.string,
fields: PropTypes.oneOfType([
PropTypes.object, // IndexedArray object
PropTypes.array // array of Field objects
]),
fields: PropTypes.array,
onChange: PropTypes.func.isRequired,
value: PropTypes.string, // fieldName
filterField: PropTypes.func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ JoinExpression.propTypes = {

// Right field props
rightValue: PropTypes.string,
rightFields: PropTypes.object, // indexPattern.fields IndexedArray object
rightFields: PropTypes.array,
onRightFieldChange: PropTypes.func.isRequired,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class MetricsExpression extends Component {

MetricsExpression.propTypes = {
metrics: PropTypes.array,
rightFields: PropTypes.object, // indexPattern.fields IndexedArray object
rightFields: PropTypes.array,
onChange: PropTypes.func.isRequired,
};

Expand Down