From 3aebc76c11e03aab9d6b0983999039876f142a2e Mon Sep 17 00:00:00 2001 From: Lauren Davidson <32903719+1aurend@users.noreply.github.com> Date: Mon, 8 Jul 2024 14:45:38 -0700 Subject: [PATCH] [B] Add guard to asset file extension check --- .../components/list/EntitiesList/Entity/AssetRow/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/backend/components/list/EntitiesList/Entity/AssetRow/index.js b/client/src/backend/components/list/EntitiesList/Entity/AssetRow/index.js index f479ab5a01..80d848e45d 100644 --- a/client/src/backend/components/list/EntitiesList/Entity/AssetRow/index.js +++ b/client/src/backend/components/list/EntitiesList/Entity/AssetRow/index.js @@ -7,7 +7,7 @@ import { useTranslation } from "react-i18next"; import * as Styled from "./styles"; const extToTag = ext => { - switch (ext.toLowerCase()) { + switch (ext?.toLowerCase()) { case "gif": case "jpeg": case "jpg":