Skip to content

Commit

Permalink
fix(core/nav): use 'undefined' instead of 'null' for empty select val…
Browse files Browse the repository at this point in the history
…ue (#5146)
  • Loading branch information
christopherthielen committed Apr 10, 2018
1 parent f2aa26d commit fb2295d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class TinyHeader extends React.Component<ITinyHeaderProps> {
.concat(secondaryCategories)
.find(c => c.dataSources.some(ds => $state.includes(appState + ds.sref)));
if (!categoryMatch) {
return null;
return undefined;
}
return categoryMatch.dataSources.find(ds => $state.includes(appState + ds.sref)).key;
}
Expand Down

0 comments on commit fb2295d

Please sign in to comment.