Skip to content

Commit

Permalink
fix(dev-server run): Check for environment tag not being undefined (a…
Browse files Browse the repository at this point in the history
…pache#21232)

* fixed local dev-server run

* removed console log

* removed console log
  • Loading branch information
sinhashubham95 authored Aug 30, 2022
1 parent 0c43190 commit b354f22
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/views/components/RightMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ const RightMenu = ({
onDatabaseAdd={handleDatabaseAdd}
/>
)}
{environmentTag.text && (
{environmentTag && environmentTag.text && (
<Label
css={{ borderRadius: `${theme.gridUnit * 125}px` }}
color={
Expand Down

0 comments on commit b354f22

Please sign in to comment.