From 9f50e88c2e2be87c9325d8209c664a7823d6a125 Mon Sep 17 00:00:00 2001 From: Joaquim Verges Date: Mon, 29 Jul 2024 15:26:40 +1200 Subject: [PATCH] lint --- src/app/react-native/v5/sidebar.tsx | 2 +- src/app/react/v5/sidebar.tsx | 2 +- src/app/typescript/v5/sidebar.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/react-native/v5/sidebar.tsx b/src/app/react-native/v5/sidebar.tsx index 77f60e4f..02634ee3 100644 --- a/src/app/react-native/v5/sidebar.tsx +++ b/src/app/react-native/v5/sidebar.tsx @@ -196,7 +196,7 @@ export const sidebar: SideBar = { const [, extensionName] = getCustomTag(f) || []; if (extensionName) { acc[extensionName] = acc[extensionName] || []; - acc[extensionName].push(f); + acc[extensionName]?.push(f); } return acc; }, diff --git a/src/app/react/v5/sidebar.tsx b/src/app/react/v5/sidebar.tsx index 1d5b00f0..6206294a 100644 --- a/src/app/react/v5/sidebar.tsx +++ b/src/app/react/v5/sidebar.tsx @@ -252,7 +252,7 @@ export const sidebar: SideBar = { const [, extensionName] = getCustomTag(f) || []; if (extensionName) { acc[extensionName] = acc[extensionName] || []; - acc[extensionName].push(f); + acc[extensionName]?.push(f); } return acc; }, diff --git a/src/app/typescript/v5/sidebar.tsx b/src/app/typescript/v5/sidebar.tsx index bafd9e21..b788348f 100644 --- a/src/app/typescript/v5/sidebar.tsx +++ b/src/app/typescript/v5/sidebar.tsx @@ -376,7 +376,7 @@ export const sidebar: SideBar = { const [, extensionName] = getCustomTag(f) || []; if (extensionName) { acc[extensionName] = acc[extensionName] || []; - acc[extensionName].push(f); + acc[extensionName]?.push(f); } return acc; },