Skip to content

Commit aae2204

Browse files
authored
fix: manually adjust heightWithPagination of Tasks page with multiOrg enabled (#5633)
1 parent afb7d55 commit aae2204

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/tasks/components/TasksList.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ import {isFlagEnabled} from 'src/shared/utils/featureFlag'
3535
import {CLOUD} from 'src/shared/constants'
3636
import {notify} from 'src/shared/actions/notifications'
3737

38+
// Constants
39+
import {GLOBAL_HEADER_HEIGHT} from 'src/identity/components/GlobalHeader/constants'
40+
3841
import {PaginationNav} from '@influxdata/clockface'
3942

4043
import {
@@ -135,7 +138,10 @@ class TasksList extends PureComponent<Props, State> implements Pageable {
135138
const heightWithPagination =
136139
this.paginationRef?.current?.clientHeight ||
137140
DEFAULT_PAGINATION_CONTROL_HEIGHT
138-
const height = this.props.pageHeight - heightWithPagination
141+
const height =
142+
this.props.pageHeight -
143+
heightWithPagination -
144+
(isFlagEnabled('multiOrg') ? GLOBAL_HEADER_HEIGHT : 0)
139145

140146
this.totalPages = Math.max(
141147
Math.ceil(this.props.tasks.length / this.rowsPerPage),

0 commit comments

Comments
 (0)