Skip to content

Commit

Permalink
[ML] Type fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Apr 3, 2020
1 parent b4e2b69 commit 238aa25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export const getDefaultFieldsFromJobCaps = (

const featureImportanceFields = [];

if (numTopFeatureImportanceValues > 0) {
if ((numTopFeatureImportanceValues ?? 0) > 0) {
featureImportanceFields.push(
...fields.map(d => ({
id: `${resultsField}.feature_importance.${d.id}`,
Expand Down

0 comments on commit 238aa25

Please sign in to comment.