mirror of https://github.com/apache/superset.git
fix(dev-server run): Check for environment tag not being undefined (#21232)
* fixed local dev-server run * removed console log * removed console log
This commit is contained in:
parent
0c43190e04
commit
b354f2265a
|
@ -103,7 +103,6 @@ const ColumnSelectPopover = ({
|
||||||
const datasourceType = useSelector<ExplorePageState, string | undefined>(
|
const datasourceType = useSelector<ExplorePageState, string | undefined>(
|
||||||
state => state.explore.datasource.type,
|
state => state.explore.datasource.type,
|
||||||
);
|
);
|
||||||
console.log('datasource', datasourceType);
|
|
||||||
const [initialLabel] = useState(label);
|
const [initialLabel] = useState(label);
|
||||||
const [initialAdhocColumn, initialCalculatedColumn, initialSimpleColumn] =
|
const [initialAdhocColumn, initialCalculatedColumn, initialSimpleColumn] =
|
||||||
getInitialColumnValues(editedColumn);
|
getInitialColumnValues(editedColumn);
|
||||||
|
@ -248,8 +247,6 @@ const ColumnSelectPopover = ({
|
||||||
const savedExpressionsLabel = t('Saved expressions');
|
const savedExpressionsLabel = t('Saved expressions');
|
||||||
const simpleColumnsLabel = t('Column');
|
const simpleColumnsLabel = t('Column');
|
||||||
|
|
||||||
console.log(calculatedColumns.length > 0);
|
|
||||||
console.log(datasourceType === DatasourceType.Query);
|
|
||||||
return (
|
return (
|
||||||
<Form layout="vertical" id="metrics-edit-popover">
|
<Form layout="vertical" id="metrics-edit-popover">
|
||||||
<Tabs
|
<Tabs
|
||||||
|
|
|
@ -281,7 +281,7 @@ const RightMenu = ({
|
||||||
onDatabaseAdd={handleDatabaseAdd}
|
onDatabaseAdd={handleDatabaseAdd}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{environmentTag.text && (
|
{environmentTag && environmentTag.text && (
|
||||||
<Label
|
<Label
|
||||||
css={{ borderRadius: `${theme.gridUnit * 125}px` }}
|
css={{ borderRadius: `${theme.gridUnit * 125}px` }}
|
||||||
color={
|
color={
|
||||||
|
|
Loading…
Reference in New Issue