Skip to content
Snippets Groups Projects
Unverified Commit 6750ad10 authored by Mahatthana (Kelvin) Nomsawadi's avatar Mahatthana (Kelvin) Nomsawadi Committed by GitHub
Browse files

Remove unused arg in EntityType (#22805)

parent 189db3ed
No related branches found
No related tags found
No related merge requests found
......@@ -3,15 +3,14 @@ import React from "react";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
export default entityType => ComposedComponent => {
export default () => ComposedComponent => {
const mapStateToProps = (state, props) => ({
entityDef:
// dynamic require due to dependency load order issues
require("metabase/entities")[
entityType ||
(typeof props.entityType === "function"
? props.entityType(state, props)
: props.entityType)
typeof props.entityType === "function"
? props.entityType(state, props)
: props.entityType
],
});
return connect(mapStateToProps)(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment