Lint all the things
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useMutation } from "@apollo/client";
|
||||
import { Button, Card, Form, InputNumber, Popover, Select } from "antd";
|
||||
import React, { useState } from "react";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { UPDATE_JOB } from "../../graphql/jobs.queries";
|
||||
|
||||
@@ -49,7 +49,7 @@ export function LaborAllocationsAdjustmentEdit({
|
||||
...(refetchQueryNames ? { refetchQueries: refetchQueryNames } : {})
|
||||
});
|
||||
|
||||
if (!!result.errors) {
|
||||
if (result.errors) {
|
||||
notification["error"]({
|
||||
message: t("jobs.errors.saving", {
|
||||
message: JSON.stringify(result.errors)
|
||||
@@ -81,7 +81,7 @@ export function LaborAllocationsAdjustmentEdit({
|
||||
onFinish={handleFinish}
|
||||
initialValues={{
|
||||
mod_lbr_ty: mod_lbr_ty,
|
||||
hours: adjustments && adjustments[mod_lbr_ty]
|
||||
hours: adjustments?.[mod_lbr_ty]
|
||||
}}
|
||||
>
|
||||
<Form.Item
|
||||
|
||||
Reference in New Issue
Block a user