From 150bb1c534112f45a262d7b88b5868c361d424aa Mon Sep 17 00:00:00 2001 From: Tristan Timblin Date: Tue, 18 Jul 2023 17:19:49 -0400 Subject: [PATCH] CEC-4745: add vins nullcheck for bulk actions bulk actions (#395) * nullcheck bulk actions * remove unused var * update snapshots --- .../App/__snapshots__/App.test.js.snap | 39 ------------------- src/components/BulkActions/index.jsx | 4 +- .../List/__snapshots__/index.test.jsx.snap | 39 ------------------- 3 files changed, 3 insertions(+), 79 deletions(-) diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index 7689412..7ba10d0 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -12501,45 +12501,6 @@ exports[`App Route /vehicles authenticated 1`] = ` /> -
- - -
0) ? vins.join(", ") : "N/A", ref: activeRef }; @@ -63,6 +63,8 @@ export default function BulkActions({ setTitle(filteredActions.find((action) => active === action.id)?.name || "Action"); }, [active, filteredActions]); + if (!vins || vins.length === 0) return <>; + return ( <> diff --git a/src/components/Cars/List/__snapshots__/index.test.jsx.snap b/src/components/Cars/List/__snapshots__/index.test.jsx.snap index c7dacb1..1c5b5f3 100644 --- a/src/components/Cars/List/__snapshots__/index.test.jsx.snap +++ b/src/components/Cars/List/__snapshots__/index.test.jsx.snap @@ -37,45 +37,6 @@ exports[`VehicleTable Render 1`] = ` /> -
- - -