- Fix a bug where a relationship deeplink would not pop if the user was already on the jobdetails page
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Button, Card, Space, Switch, Table } from "antd";
|
||||
import queryString from "query-string";
|
||||
import React, { useCallback } from "react";
|
||||
import React, { useCallback, useEffect } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useLocation, useNavigate } from "react-router-dom";
|
||||
import { pageLimit } from "../../utils/config";
|
||||
@@ -115,6 +115,7 @@ function TaskListComponent({
|
||||
showRo = true
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const location = useLocation();
|
||||
|
||||
const search = queryString.parse(useLocation().search);
|
||||
|
||||
@@ -124,6 +125,10 @@ function TaskListComponent({
|
||||
const history = useNavigate();
|
||||
const columns = [];
|
||||
|
||||
useEffect(() => {
|
||||
// This is a hack to force the page to change if the query params change (partssublet for example)
|
||||
}, [location]);
|
||||
|
||||
columns.push({
|
||||
title: t("tasks.fields.created_at"),
|
||||
dataIndex: "created_at",
|
||||
|
||||
Reference in New Issue
Block a user