Lint all the things

This commit is contained in:
Dave
2025-08-19 16:23:29 -04:00
parent f6d6b548be
commit 33fb60ca1a
640 changed files with 2129 additions and 3927 deletions

View File

@@ -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();
}
};