Resolve list arrow movement IO-604

This commit is contained in:
Patrick Fic
2021-02-23 11:13:14 -08:00
parent 059b328354
commit a27390e2d3
4 changed files with 27 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
import { useLazyQuery } from "@apollo/react-hooks";
import { Button, DatePicker, Form, Input, Select, Switch } from "antd";
import { Button, DatePicker, Form, Select, Switch } from "antd";
import moment from "moment";
import React from "react";
import { useTranslation } from "react-i18next";
@@ -28,16 +28,13 @@ export function ReportCenterModalComponent({ reportCenterModal }) {
const Templates = TemplateList("report_center");
const { visible } = reportCenterModal;
const [callVendorQuery, { loading, error, data, called }] = useLazyQuery(
QUERY_ALL_VENDORS,
{
skip: !(
visible &&
Templates[form.getFieldValue("key")] &&
Templates[form.getFieldValue("key")].idtype
),
}
);
const [callVendorQuery, { data, called }] = useLazyQuery(QUERY_ALL_VENDORS, {
skip: !(
visible &&
Templates[form.getFieldValue("key")] &&
Templates[form.getFieldValue("key")].idtype
),
});
const handleFinish = (values) => {
const start = values.dates[0];