Skip to content

Commit 75ca1bb

Browse files
committed
Refactor
1 parent fdb987c commit 75ca1bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Elastic.Markdown/Myst/Components/ApplicableToComponent.cshtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@
266266
case ProductLifecycle.GenerallyAvailable:
267267
if (TryGetRealVersion(applicability, out var version) && version > versioningSystem.Current)
268268
{
269-
var technicalPreviewApplicability = applications.FirstOrDefault(a => a.Lifecycle == ProductLifecycle.TechnicalPreview);
270-
badgeText = technicalPreviewApplicability is not null ? "GA planned" : "Planned";
269+
badgeText = applications.Any(a => a.Lifecycle == ProductLifecycle.TechnicalPreview) ? "GA planned" : "Planned";
271270
lifecycleTooltip = "We plan to add this functionality in a future update. Plans may change without notice.";
272271
lifecycleClass = "planned";
273272
}

0 commit comments

Comments
 (0)