mirror of
https://github.com/apache/superset.git
synced 2026-05-12 03:15:55 +00:00
* replace Well componenet with Card component * Fix lint errors * Fix lint * Addressing comments * Addressing comments * Fix lint errors * Exporting Card from index.tsx and adding storybook variants * Fix some refactoring * Fix errors * solving conflicts and lint errors * Update superset-frontend/src/common/components/Card.tsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> * Update superset-frontend/src/common/components/Card.tsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> * Update superset-frontend/src/common/components/common.stories.tsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> * Update superset-frontend/src/common/components/common.stories.tsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> * Update superset-frontend/src/common/components/common.stories.tsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> * Update superset-frontend/src/common/components/common.stories.tsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> * Update superset-frontend/src/common/components/common.stories.tsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> Co-authored-by: Nikola Gigic <nik.gigic@gmail.com> Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
This commit is contained in:
@@ -141,7 +141,8 @@ export class ControlPanelsContainer extends React.Component<ControlPanelsContain
|
||||
// state, too. Since it's may be expensive to run mapStateToProps for every
|
||||
// re-render, we only run this when the chart plugin explicitly ask for this.
|
||||
...(config.mapStateToProps?.length === 3
|
||||
? config.mapStateToProps(exploreState, controls[name], chart)
|
||||
? // @ts-ignore /* The typing accuses of having an extra parameter. I didn't remove it because I believe it could be an error in the types and not in the code */
|
||||
config.mapStateToProps(exploreState, controls[name], chart)
|
||||
: // for other controls, `mapStateToProps` is already run in
|
||||
// controlUtils/getControlState.ts
|
||||
undefined),
|
||||
|
||||
Reference in New Issue
Block a user