diff --git a/src/components/FilterBar/FilterBar.js b/src/components/FilterBar/FilterBar.js index 1466360d6..fb3ac84b7 100644 --- a/src/components/FilterBar/FilterBar.js +++ b/src/components/FilterBar/FilterBar.js @@ -5,8 +5,6 @@ import PropTypes from 'prop-types' import FilterBadge from './FilterBadge' import { sGetNamedItemFilters } from '../../reducers/itemFilters' -import { sGetControlBarUserRows } from '../../reducers/controlBar' -import { getControlBarHeight } from '../ControlBar/controlBarDimensions' import { acRemoveItemFilter } from '../../actions/itemFilters' import { acSetActiveModalDimension } from '../../actions/activeModalDimension' @@ -25,12 +23,11 @@ export class FilterBar extends Component { } render() { - const { filters, userRows } = this.props - - const top = getControlBarHeight(userRows) + 10 + const { filters } = this.props return filters.length ? ( -
+ // the 3 is calculated so that the FilterBar has the same vertical position as the TitleBar in relation to the ControlBar +
{filters.map(filter => ( ({ filters: sGetNamedItemFilters(state), - userRows: sGetControlBarUserRows(state), }) export default connect(mapStateToProps, {