feature/IO-3497-Ant-Design-v5-to-v6 - Checkpoint (Apollo)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { useLazyQuery } from "@apollo/client";
|
||||
import { useLazyQuery } from "@apollo/client/react";
|
||||
import { useTreatmentsWithConfig } from "@splitsoftware/splitio-react";
|
||||
import { Card, Form, Input, InputNumber, Select, Space, Switch } from "antd";
|
||||
import { useEffect } from "react";
|
||||
@@ -61,7 +61,7 @@ export function TimeTicketModalComponent({
|
||||
if (!watchedJobId) return;
|
||||
if (!lineTicketRefreshKey) return;
|
||||
|
||||
loadLineTicketData({ variables: { id: watchedJobId } });
|
||||
loadLineTicketData({ id: watchedJobId });
|
||||
}, [lineTicketRefreshKey, watchedJobId, isOpen]);
|
||||
|
||||
const CostCenterSelect = ({ emps, value, ...props }) => {
|
||||
@@ -327,7 +327,7 @@ export function TimeTicketModalComponent({
|
||||
{() => {
|
||||
const jobid = form.getFieldValue("jobid");
|
||||
if ((!called && jobid) || (jobid && lineTicketData?.jobs_by_pk?.id !== jobid && !loading)) {
|
||||
loadLineTicketData({ variables: { id: jobid } });
|
||||
loadLineTicketData({ id: jobid });
|
||||
}
|
||||
return <LaborAllocationContainer jobid={jobid || null} loading={loading} lineTicketData={lineTicketData} />;
|
||||
}}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PageHeader } from "@ant-design/pro-layout";
|
||||
import { useMutation, useQuery } from "@apollo/client";
|
||||
import { useMutation, useQuery } from "@apollo/client/react";
|
||||
import { useTreatmentsWithConfig } from "@splitsoftware/splitio-react";
|
||||
import { Button, Form, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
Reference in New Issue
Block a user