From c10835bec9c0f076fb8645a70248ccc8cd74076e Mon Sep 17 00:00:00 2001 From: das31 <31259710+das31@users.noreply.github.com> Date: Thu, 12 Jan 2023 15:39:10 -0500 Subject: [PATCH] fix warnings (#256) --- .../App/__snapshots__/App.test.js.snap | 120 +----------------- .../__snapshots__/CarUpdatesTab.test.jsx.snap | 4 +- .../Controls/CarUpdatesTable/index.jsx | 2 +- .../Controls/IssueSelectionTable/index.jsx | 4 +- 4 files changed, 7 insertions(+), 123 deletions(-) diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index 348551e..3ecf212 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -2639,124 +2639,8 @@ exports[`App Route /issues authenticated 1`] = ` - -
-
-

- Rows per page: -

-
- - -
-

- 1-NaN of undefined -

-
- - -
-
+ + No issues found diff --git a/src/components/Cars/Status/__snapshots__/CarUpdatesTab.test.jsx.snap b/src/components/Cars/Status/__snapshots__/CarUpdatesTab.test.jsx.snap index 7468285..d4fb153 100644 --- a/src/components/Cars/Status/__snapshots__/CarUpdatesTab.test.jsx.snap +++ b/src/components/Cars/Status/__snapshots__/CarUpdatesTab.test.jsx.snap @@ -164,9 +164,9 @@ exports[`CarUpdatesTab Render 1`] = ` -

+ No Car Updates found -

+ diff --git a/src/components/Controls/CarUpdatesTable/index.jsx b/src/components/Controls/CarUpdatesTable/index.jsx index 19882c9..4ea66ca 100644 --- a/src/components/Controls/CarUpdatesTable/index.jsx +++ b/src/components/Controls/CarUpdatesTable/index.jsx @@ -198,7 +198,7 @@ const MainForm = ({ vin, token }) => { {totalCarUpdates === 0 ? ( -

No Car Updates found

+ No Car Updates found ) : ( { const [pageIndex, setPageIndex] = useState(0); const [orderBy, setOrderBy] = useState("created_at"); const [order, setOrder] = useState("asc"); - const { getIssues, issues, totalIssues } = useIssueContext(); + const { getIssues, issues, totalIssues = 0 } = useIssueContext(); const { groups, providers } = useUserContext(); const { setMessage } = useStatusContext(); @@ -182,7 +182,7 @@ const IssueSelectionTable = (props) => { {totalIssues === 0 ? ( -

No issues found

+ No issues found ) : (