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:
Shubham Sinha 2022-08-30 12:21:32 +05:30 committed by GitHub
parent 0c43190e04
commit b354f2265a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -281,7 +281,7 @@ const RightMenu = ({
onDatabaseAdd={handleDatabaseAdd}
/>
)}
{environmentTag.text && (
{environmentTag && environmentTag.text && (
<Label
css={{ borderRadius: `${theme.gridUnit * 125}px` }}
color={