No need to pass undefined explicitly. view will be undefined if it's not passed

This commit is contained in:
mabashian
2020-04-08 11:12:31 -04:00
parent 63bed7a30d
commit 188b23e88f

View File

@@ -44,7 +44,7 @@ function Jobs({ i18n }) {
function TypeRedirect({ view }) {
const { id } = useParams();
const { path } = useRouteMatch();
return <JobTypeRedirect id={id} path={path} view={view || undefined} />;
return <JobTypeRedirect id={id} path={path} view={view} />;
}
return (