Lint all the things
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { useMutation } from "@apollo/client";
|
||||
import { Button, Popconfirm } from "antd";
|
||||
import queryString from "query-string";
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useLocation, useNavigate } from "react-router-dom";
|
||||
import { DELETE_TEMPLATE } from "../../graphql/templates.queries";
|
||||
@@ -24,7 +23,7 @@ export default function ShopTemplateDeleteComponent({ templateId, refetch }) {
|
||||
}
|
||||
});
|
||||
|
||||
if (!!result.errors) {
|
||||
if (result.errors) {
|
||||
notification["error"]({
|
||||
message: t("bodyshop.errors.deletingtemplate", {
|
||||
message: JSON.stringify(result.errors)
|
||||
@@ -33,7 +32,7 @@ export default function ShopTemplateDeleteComponent({ templateId, refetch }) {
|
||||
} else {
|
||||
delete search.customTemplateId;
|
||||
history({ search: queryString.stringify(search) });
|
||||
if (!!refetch) refetch();
|
||||
if (refetch) refetch();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user