-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ui: fix job dispatch page when job doesn't have any meta fields #10934
Conversation
Ember Asset Size actionAs of 26d7eb6 Files that got Bigger 🚨:
Files that stayed the same size 🤷:
|
Ember Test Audit comparison
|
@@ -47,7 +47,7 @@ export default class JobDispatch extends Component { | |||
super(...arguments); | |||
|
|||
// Helper for mapping the params into a useable form. | |||
const mapper = (values = [], required) => | |||
const mapper = (values, required) => |
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.
Why are we removing the default parameter on this function?
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.
Only one question regarding why we're removing the default parameter in the mapper
function. Seemed like it wasn't in line with the rest of code. But not worth blocking this diff.
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
When a job doesn't have any meta field declared, the API returns
null
. The previous logic would not cover this case.