Resolved issues on time ticket modal IO-563

This commit is contained in:
Patrick Fic
2021-02-04 18:15:00 -08:00
parent 9993d76709
commit ef03a6cd42
5 changed files with 13 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ import React, { forwardRef, useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import {
SEARCH_JOBS_BY_ID_FOR_AUTOCOMPLETE,
SEARCH_JOBS_FOR_AUTOCOMPLETE
SEARCH_JOBS_FOR_AUTOCOMPLETE,
} from "../../graphql/jobs.queries";
import AlertComponent from "../alert/alert.component";
const { Option } = Select;
@@ -61,12 +61,6 @@ const JobSearchSelect = (
}
}, [value, option, callIdSearch]);
// useEffect(() => {
// if (value !== option && onChange) {
// onChange(option);
// }
// }, [value, option, onChange]);
const handleSelect = (value) => {
setOption(value);
if (value !== option && onChange) {