diff options
author | Ajay <[email protected]> | 2023-11-08 18:13:38 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2023-11-08 18:13:38 -0500 |
commit | 133ea360d7b757b3b0be45b36d54b6d14d90b332 (patch) | |
tree | 6a4352d8af25cac4e8e3d0cab1846a574cbdb579 /src | |
parent | e722ded58a928989bb583ae266acf765c129592c (diff) | |
download | SponsorBlock-133ea360d7b757b3b0be45b36d54b6d14d90b332.tar.gz SponsorBlock-133ea360d7b757b3b0be45b36d54b6d14d90b332.zip |
Fix error when submitting with required segments
Diffstat (limited to 'src')
-rw-r--r-- | src/content.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts index 2804dc4c..91ca3f71 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1353,7 +1353,7 @@ function updatePreviewBar(): void { showLarger: segment.actionType === ActionType.Poi, description: segment.description, source: segment.source, - requiredSegment: requiredSegment && (segment.UUID === requiredSegment || segment.UUID.startsWith(requiredSegment)), + requiredSegment: requiredSegment && (segment.UUID === requiredSegment || segment.UUID?.startsWith(requiredSegment)), selectedSegment: selectedSegment && segment.UUID === selectedSegment }); }); |