mirror of
https://github.com/apache/superset.git
synced 2026-05-11 10:55:43 +00:00
feat(explore): Dataset Panel Options when Source = Query II (#20299)
* Created/tested query dataset dropdown * Add isValidDatasourceType to @superset-ui/core and hide query dropdown * Removed isValidDatasourceType check * Remove the rest of isValidDatasourceType check
This commit is contained in:
committed by
GitHub
parent
d0165b617b
commit
c842c9e2d8
@@ -307,12 +307,6 @@ export default function DataSourcePanel({
|
||||
return true;
|
||||
};
|
||||
|
||||
const isValidDatasourceType =
|
||||
datasource.type === DatasourceType.Dataset ||
|
||||
datasource.type === DatasourceType.SlTable ||
|
||||
datasource.type === DatasourceType.SavedQuery ||
|
||||
datasource.type === DatasourceType.Query;
|
||||
|
||||
const mainBody = useMemo(
|
||||
() => (
|
||||
<>
|
||||
@@ -327,7 +321,7 @@ export default function DataSourcePanel({
|
||||
placeholder={t('Search Metrics & Columns')}
|
||||
/>
|
||||
<div className="field-selections">
|
||||
{isValidDatasourceType && showInfoboxCheck() && (
|
||||
{datasource.type === DatasourceType.Query && showInfoboxCheck() && (
|
||||
<StyledInfoboxWrapper>
|
||||
<Alert
|
||||
closable
|
||||
|
||||
Reference in New Issue
Block a user