removed console error
This commit is contained in:
parent
de088fcfc2
commit
5abab06b0c
@ -192,8 +192,8 @@ const ManageServiceProject = ({ serviceProjectId, onClose }) => {
|
||||
{...register("statusId")}
|
||||
>
|
||||
<option>Select Service</option>
|
||||
{PROJECT_STATUS.map((status) => (
|
||||
<option value={status.id}>{status.label}</option>
|
||||
{PROJECT_STATUS?.map((status) => (
|
||||
<option key={status.id} value={status.id}>{status.label}</option>
|
||||
))}
|
||||
</select>
|
||||
{errors?.statusId && (
|
||||
|
||||
@ -103,7 +103,7 @@ const ServiceBranch = () => {
|
||||
htmlFor="inactiveEmployeesCheckbox"
|
||||
className="ms-2 text-xs"
|
||||
>
|
||||
Show Deleted Branches
|
||||
{!showInactive ? "Show Deleted" : "Hide Deleted"}
|
||||
</label>
|
||||
</div>
|
||||
<div className="d-flex justify-content-end">
|
||||
|
||||
@ -162,7 +162,7 @@ const ServiceProjectTeamAllocation = () => {
|
||||
</div>
|
||||
<div className="col-12 d-flex flex-row gap-2 flex-wrap">
|
||||
{selectedEmployees.map((e) => (
|
||||
<EmployeeChip handleRemove={handleRemove} employee={e} />
|
||||
<EmployeeChip key={`${e.id}-emp`} handleRemove={handleRemove} employee={e} />
|
||||
))}
|
||||
</div>
|
||||
</>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React from 'react'
|
||||
import React from "react";
|
||||
|
||||
export const EmployeeChip = ({ handleRemove, employee }) => {
|
||||
return (
|
||||
@ -40,6 +40,5 @@ export const EmployeeChip = ({handleRemove,employee}) => {
|
||||
title="Remove"
|
||||
/>
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
);
|
||||
};
|
||||
|
||||
@ -14,7 +14,6 @@ const InputSuggessionField = ({
|
||||
}) => {
|
||||
const [open, setOpen] = useState(false);
|
||||
const dropdownRef = useRef(null);
|
||||
console.log(suggesstionList)
|
||||
useEffect(() => {
|
||||
const handleClickOutside = (event) => {
|
||||
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
|
||||
@ -61,7 +60,7 @@ console.log(suggesstionList)
|
||||
|
||||
{open && !isLoading && (
|
||||
<ul
|
||||
className="dropdown-menu w-100 shadow-sm show animate__fadeIn"
|
||||
className="dropdown-menu w-100 shadow-sm show animate__fadeIn h-64 overflow-auto rounded overflow-x-hidden"
|
||||
style={{
|
||||
position: "absolute",
|
||||
top: "100%",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user