-
Notifications
You must be signed in to change notification settings - Fork 6
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 webapp crash when no pipeline #333
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -162,11 +162,11 @@ const PageHeader = () => { | |||||
<span className={classes.label}>Project:</span> | ||||||
<span>{datasetInfo.projectName}</span> | ||||||
</Typography> | ||||||
{config && ( | ||||||
{config?.pipelines && ( | ||||||
<PipelineSelect | ||||||
selectedPipeline={pipeline.pipelineIndex} | ||||||
onChange={setPipeline} | ||||||
pipelines={config.pipelines!} | ||||||
pipelines={config.pipelines} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Good question @christyler3030. 👍 I wanted to do the quickest fix possible so JavaScript stops crashing and it was midnight so I didn't think too much. Let's take the time now, it's not so much of a rush. I like your alternative suggestion. In fact, that's how it used to work before the bug was introduced here, so I'll revert to that. It has two (other) benefits:
Suggested change
On that topic, note that the back end currently crashes with an unclear error message when you configure |
||||||
/> | ||||||
)} | ||||||
</> | ||||||
|
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.
This inappropriate
!
was letting anull
in, which was crashingPipelineSelect
.