Skip to content

Commit

Permalink
Don't return null from stateless components
Browse files Browse the repository at this point in the history
  • Loading branch information
kwm4385 committed Aug 17, 2016
1 parent eb9baa4 commit 0abd543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const PendingTasksTable = ({tasksAPI}) => {
const tasks = tasksAPI ? tasksAPI.data : [];

if (!tasks.length) {
return null;
return <div></div>;
}

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Utils from '../../../utils';

const RequestActionButtons = ({requestParent, fetchRequest, router}) => {
if (!requestParent || !requestParent.request) {
return null;
return <div></div>;
}
const {request, state} = requestParent;

Expand Down

0 comments on commit 0abd543

Please sign in to comment.