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

@@ -3,7 +3,7 @@ import { useMutation, useQuery } from "@apollo/client";
import { Button, Card, Form, Input, InputNumber, Space, Switch } from "antd";
import querystring from "query-string";
import React, { useEffect } from "react";
import { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
import { useLocation, useNavigate } from "react-router-dom";
@@ -26,7 +26,7 @@ import { useNotification } from "../../contexts/Notifications/notificationContex
const mapStateToProps = createStructuredSelector({
bodyshop: selectBodyshop
});
const mapDispatchToProps = (dispatch) => ({
const mapDispatchToProps = () => ({
//setUserLanguage: language => dispatch(setUserLanguage(language))
});
@@ -45,7 +45,7 @@ export function ShopEmployeeTeamsFormComponent({ bodyshop }) {
});
useEffect(() => {
if (data && data.employee_teams_by_pk) form.setFieldsValue(data.employee_teams_by_pk);
if (data?.employee_teams_by_pk) form.setFieldsValue(data.employee_teams_by_pk);
else {
form.resetFields();
}