mirror of
https://github.com/apache/superset.git
synced 2026-06-02 06:09:21 +00:00
* Revert "fix: Error when saving datasource from Explore (#20749)" This reverts commit92f3621c75. * Revert "refactor: Unify shared datasources reducers and actions (#20645)" This reverts commit2a705406e1.
This commit is contained in:
committed by
GitHub
parent
84b852c457
commit
3311128c5e
@@ -19,7 +19,7 @@
|
||||
/* eslint camelcase: 0 */
|
||||
import { t } from '@superset-ui/core';
|
||||
import { HYDRATE_DASHBOARD } from 'src/dashboard/actions/hydrate';
|
||||
import { DatasourcesActionType } from 'src/datasource/actions';
|
||||
import { DatasourcesAction } from 'src/dashboard/actions/datasources';
|
||||
import { ChartState } from 'src/explore/types';
|
||||
import { getFormDataFromControls } from 'src/explore/controlUtils';
|
||||
import { HYDRATE_EXPLORE } from 'src/explore/actions/hydrateExplore';
|
||||
@@ -198,7 +198,7 @@ export default function chartReducer(
|
||||
if (action.type === HYDRATE_DASHBOARD || action.type === HYDRATE_EXPLORE) {
|
||||
return { ...action.data.charts };
|
||||
}
|
||||
if (action.type === DatasourcesActionType.SET_DATASOURCES) {
|
||||
if (action.type === DatasourcesAction.SET_DATASOURCES) {
|
||||
return Object.fromEntries(
|
||||
Object.entries(charts).map(([chartId, chart]) => [
|
||||
chartId,
|
||||
|
||||
Reference in New Issue
Block a user