Lint all the things
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user