From e2ba5c20633dff13065fe05884aa10c282f90f24 Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 13 Jan 2022 23:56:15 -0500 Subject: [PATCH] Make wiki link go to specific page and fix crash when submitting --- src/components/SponsorTimeEditComponent.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx index f0882ec3..551b20f7 100644 --- a/src/components/SponsorTimeEditComponent.tsx +++ b/src/components/SponsorTimeEditComponent.tsx @@ -189,7 +189,8 @@ class SponsorTimeEditComponent extends React.Component {/* open in new tab */} - {/* Action Type */} - {CompileConfig.categorySupport[sponsorTime.category]?.length > 1 - || CompileConfig.categorySupport[sponsorTime.category][0] !== "skip" ? ( + {CompileConfig.categorySupport[sponsorTime.category] && + (CompileConfig.categorySupport[sponsorTime.category]?.length > 1 + || CompileConfig.categorySupport[sponsorTime.category]?.[0] !== "skip") ? (