show nothing if no diff is there

This commit is contained in:
Maren Süwer
2018-12-12 15:40:24 +01:00
parent 8ecb64a8aa
commit cab797fd83

View File

@@ -52,9 +52,12 @@ class LoadingDiff extends React.Component<Props, State> {
const { diff, loading, error } = this.state;
if (error) {
return <ErrorNotification error={error} />;
} else if (loading || !diff) {
} else if (loading) {
return <Loading />;
} else {
} else if(!diff){
return null;
}
else {
return <Diff diff={diff} />;
}
}