Skip to content

Commit

Permalink
To fix issues raised by Codacy Static Code Analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
webbdays committed Feb 19, 2024
1 parent 1a1e332 commit 5e4b82f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/task/task-table.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useState} from 'react'
import React from 'react'
import PropTypes from 'prop-types'
import { injectIntl, defineMessages, FormattedMessage } from 'react-intl'
import { withRouter } from 'react-router-dom'
Expand Down Expand Up @@ -213,7 +213,6 @@ class CustomPaginationActionsTable extends React.Component {

render () {
const { classes, tasks } = this.props
const { rowsPerPage, page, sortByField, sortDirection, tasksData } = this.state
const emptyRows = tasks.data.length ? rowsPerPage - Math.min(rowsPerPage, tasks.data.length - page * rowsPerPage) : 0;
const TableCellWithSortLogic = ({fieldId ,defineMessage, sortHandler})=>{
return (
Expand Down

0 comments on commit 5e4b82f

Please sign in to comment.