mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
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:
@@ -103,7 +103,6 @@ const ColumnSelectPopover = ({
|
||||
const datasourceType = useSelector<ExplorePageState, string | undefined>(
|
||||
state => state.explore.datasource.type,
|
||||
);
|
||||
console.log('datasource', datasourceType);
|
||||
const [initialLabel] = useState(label);
|
||||
const [initialAdhocColumn, initialCalculatedColumn, initialSimpleColumn] =
|
||||
getInitialColumnValues(editedColumn);
|
||||
@@ -248,8 +247,6 @@ const ColumnSelectPopover = ({
|
||||
const savedExpressionsLabel = t('Saved expressions');
|
||||
const simpleColumnsLabel = t('Column');
|
||||
|
||||
console.log(calculatedColumns.length > 0);
|
||||
console.log(datasourceType === DatasourceType.Query);
|
||||
return (
|
||||
<Form layout="vertical" id="metrics-edit-popover">
|
||||
<Tabs
|
||||
|
||||
@@ -281,7 +281,7 @@ const RightMenu = ({
|
||||
onDatabaseAdd={handleDatabaseAdd}
|
||||
/>
|
||||
)}
|
||||
{environmentTag.text && (
|
||||
{environmentTag && environmentTag.text && (
|
||||
<Label
|
||||
css={{ borderRadius: `${theme.gridUnit * 125}px` }}
|
||||
color={
|
||||
|
||||
Reference in New Issue
Block a user