Resolved issues on time ticket modal IO-563
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user