diff --git a/client/src/components/production-list-table/production-list-table.component.jsx b/client/src/components/production-list-table/production-list-table.component.jsx index 279e26b4a..ea3d9c2a2 100644 --- a/client/src/components/production-list-table/production-list-table.component.jsx +++ b/client/src/components/production-list-table/production-list-table.component.jsx @@ -1,23 +1,23 @@ -import React, { useEffect, useMemo, useRef, useState } from "react"; -import { Button, Dropdown, Input, Space, Statistic, Table } from "antd"; +import { SyncOutlined } from "@ant-design/icons"; import { PageHeader } from "@ant-design/pro-layout"; +import { useSplitTreatments } from "@splitsoftware/splitio-react"; +import { Button, Dropdown, Input, Space, Statistic, Table } from "antd"; +import _ from "lodash"; +import React, { useEffect, useMemo, useRef, useState } from "react"; import ReactDragListView from "react-drag-listview"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; import { selectTechnician } from "../../redux/tech/tech.selectors"; import { selectBodyshop, selectCurrentUser } from "../../redux/user/user.selectors"; +import Prompt from "../../utils/prompt.js"; +import AlertComponent from "../alert/alert.component.jsx"; import ProductionListColumnsAdd from "../production-list-columns/production-list-columns.add.component"; import ProductionListColumns from "../production-list-columns/production-list-columns.data"; import ProductionListDetail from "../production-list-detail/production-list-detail.component"; +import { ProductionListConfigManager } from "./production-list-config-manager.component.jsx"; import ProductionListPrint from "./production-list-print.component"; import ResizeableTitle from "./production-list-table.resizeable.component"; -import { useSplitTreatments } from "@splitsoftware/splitio-react"; -import { SyncOutlined } from "@ant-design/icons"; -import Prompt from "../../utils/prompt.js"; -import _ from "lodash"; -import AlertComponent from "../alert/alert.component.jsx"; -import { ProductionListConfigManager } from "./production-list-config-manager.component.jsx"; const mapStateToProps = createStructuredSelector({ bodyshop: selectBodyshop, @@ -43,7 +43,7 @@ export function ProductionListTable({ loading, data, refetch, bodyshop, technici const initialStateRef = useRef( (bodyshop.production_config && bodyshop.production_config.find((p) => p.name === defaultView)?.columns.tableState) || - bodyshop.production_config[0]?.columns.tableState || { + (bodyshop.production_config && bodyshop.production_config[0]?.columns.tableState) || { sortedInfo: {}, filteredInfo: { text: "" } }