Resolved issues on time ticket modal IO-563
This commit is contained in:
@@ -21,7 +21,6 @@ export function LaborAllocationsTable({
|
||||
adjustments,
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const [totals, setTotals] = useState([]);
|
||||
useEffect(() => {
|
||||
if (!!joblines && !!timetickets && !!bodyshop);
|
||||
@@ -33,7 +32,8 @@ export function LaborAllocationsTable({
|
||||
adjustments
|
||||
)
|
||||
);
|
||||
}, [joblines, timetickets, bodyshop, adjustments]);
|
||||
if (!jobId) setTotals([]);
|
||||
}, [joblines, timetickets, bodyshop, adjustments, jobId]);
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user