-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Release filter validation on policy #121
Conversation
{activeTab === "overview" && ( | ||
<Overview environmentPolicy={environmentPolicy} /> | ||
)} | ||
{activeTab === "approval" && ( | ||
<Approval environmentPolicy={environmentPolicy} /> | ||
)} | ||
{activeTab === "concurrency" && ( | ||
<Concurrency environmentPolicy={environmentPolicy} /> | ||
)} | ||
{activeTab === "gradual-rollout" && ( | ||
<GradualRollouts environmentPolicy={environmentPolicy} /> | ||
)} | ||
{activeTab === "success-criteria" && ( | ||
<SuccessCriteria environmentPolicy={environmentPolicy} /> | ||
)} | ||
{activeTab === "release-sequencing" && ( | ||
<ReleaseSequencing environmentPolicy={environmentPolicy} /> | ||
)} | ||
{activeTab === "release-windows" && ( | ||
<ReleaseWindows environmentPolicy={environmentPolicy} /> | ||
)} | ||
{activeTab === "release-filter" && ( | ||
<ReleaseFilter environmentPolicy={environmentPolicy} /> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const View= {
overview: <Overview environmentPolicy={environmentPolicy} />,
approval: <Approval environmentPolicy={environmentPolicy} />,
}[selected]
) | ||
.then(takeFirstOrNull); | ||
|
||
return isPresent(release) ? v : null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return isPresent(release) ? v : null; | |
return release ?? null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not returning release, i'm returning v, so I cannot do null coalescing here
No description provided.