Lint all the things
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { useMutation, useQuery } from "@apollo/client";
|
||||
import React, { useState } from "react";
|
||||
//import SpinComponent from "../../components/loading-spinner/loading-spinner.component";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
@@ -39,7 +38,7 @@ export function JobNotesContainer({ jobId, insertAuditTrail }) {
|
||||
variables: {
|
||||
noteId: id
|
||||
}
|
||||
}).then((r) => {
|
||||
}).then(() => {
|
||||
refetch();
|
||||
notification["success"]({
|
||||
message: t("notes.successes.deleted")
|
||||
@@ -60,7 +59,7 @@ export function JobNotesContainer({ jobId, insertAuditTrail }) {
|
||||
jobId={jobId}
|
||||
loading={loading}
|
||||
data={data ? data.jobs_by_pk.notes : null}
|
||||
relatedRos={data ? data.jobs_by_pk.vehicle && data.jobs_by_pk.vehicle.jobs : null}
|
||||
relatedRos={data ? data.jobs_by_pk.vehicle?.jobs : null}
|
||||
refetch={refetch}
|
||||
deleteLoading={deleteLoading}
|
||||
handleNoteDelete={handleNoteDelete}
|
||||
|
||||
Reference in New Issue
Block a user