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

@@ -2,7 +2,6 @@ import { DownOutlined } from "@ant-design/icons";
import { useMutation } from "@apollo/client";
import { Dropdown } from "antd";
import queryString from "query-string";
import React from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
import { useLocation, useNavigate } from "react-router-dom";
@@ -12,6 +11,7 @@ import { INSERT_TEMPLATE, QUERY_TEMPLATES_BY_NAME_FOR_DUPE } from "../../graphql
import { selectBodyshop } from "../../redux/user/user.selectors";
import client from "../../utils/GraphQLClient";
import { TemplateList } from "../../utils/TemplateConstants";
import { isFunction } from "lodash";
const mapStateToProps = createStructuredSelector({
//currentUser: selectCurrentUser
@@ -54,7 +54,7 @@ export function ShopTemplateAddComponent({ bodyshop, shopTemplateList, refetch }
const returningId = result.data.insert_templates.returning[0].id;
search.customTemplateId = returningId;
history({ search: queryString.stringify(search) });
if (!!refetch) refetch();
if (refetch && isFunction(refetch)) refetch();
};
const TemplateListGenerated = TemplateList();
const menu = {