@@ -1,6 +1,6 @@
|
|||||||
import { Button, Card, Space, Switch, Table } from "antd";
|
import { Button, Card, Space, Switch, Table } from "antd";
|
||||||
import queryString from "query-string";
|
import queryString from "query-string";
|
||||||
import React, { useCallback, useState } from "react";
|
import React, { useCallback } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Link, useLocation, useNavigate } from "react-router-dom";
|
import { Link, useLocation, useNavigate } from "react-router-dom";
|
||||||
import { pageLimit } from "../../utils/config";
|
import { pageLimit } from "../../utils/config";
|
||||||
@@ -258,7 +258,6 @@ function TaskListComponent({
|
|||||||
}, [parentJobId, relationshipId, relationshipType, setTaskUpsertContext]);
|
}, [parentJobId, relationshipId, relationshipType, setTaskUpsertContext]);
|
||||||
|
|
||||||
const handleTableChange = (pagination, filters, sorter) => {
|
const handleTableChange = (pagination, filters, sorter) => {
|
||||||
setState({ ...state, filteredInfo: filters, sortedInfo: sorter });
|
|
||||||
search.page = pagination.current;
|
search.page = pagination.current;
|
||||||
search.sortcolumn = sorter.columnKey;
|
search.sortcolumn = sorter.columnKey;
|
||||||
search.sortorder = sorter.order;
|
search.sortorder = sorter.order;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export function AllTasksPageContainer({
|
|||||||
});
|
});
|
||||||
urlParams.delete("taskid");
|
urlParams.delete("taskid");
|
||||||
}
|
}
|
||||||
}, [setTaskUpsertContext]);
|
}, [setTaskUpsertContext, searchParams]);
|
||||||
|
|
||||||
return <TasksPageComponent type={TaskPageTypes.ALL_TASKS} currentUser={currentUser} bodyshop={bodyshop} />;
|
return <TasksPageComponent type={TaskPageTypes.ALL_TASKS} currentUser={currentUser} bodyshop={bodyshop} />;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user