mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix: set reference to columns properly for sqllab -> explore (#20747)
* set reference to columns properly * fix logic
This commit is contained in:
@@ -27,6 +27,7 @@ import {
|
||||
t,
|
||||
useTheme,
|
||||
getChartMetadataRegistry,
|
||||
DatasourceType,
|
||||
} from '@superset-ui/core';
|
||||
import { useResizeDetector } from 'react-resize-detector';
|
||||
import { chartPropShape } from 'src/dashboard/util/propShapes';
|
||||
@@ -153,8 +154,8 @@ const ExploreChartPanel = ({
|
||||
|
||||
const metaDataRegistry = getChartMetadataRegistry();
|
||||
const { useLegacyApi } = metaDataRegistry.get(vizType);
|
||||
const vizTypeNeedsDataset = useLegacyApi && datasource.type !== 'dataset';
|
||||
|
||||
const vizTypeNeedsDataset =
|
||||
useLegacyApi && datasource.type !== DatasourceType.Table;
|
||||
// added boolean column to below show boolean so that the errors aren't overlapping
|
||||
const showAlertBanner =
|
||||
!chartAlert &&
|
||||
|
||||
Reference in New Issue
Block a user