- 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:
Dave Richer
2024-04-10 16:57:37 -04:00
parent 3d753a2d19
commit 148cd43c5d

View File

@@ -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",