diff --git a/src/forge/Main/Diff.jsx b/src/forge/Main/Diff.jsx
index 18eda5f2..c10cb81a 100644
--- a/src/forge/Main/Diff.jsx
+++ b/src/forge/Main/Diff.jsx
@@ -50,7 +50,6 @@ export default ({ match , history }) => {
});
}
}, [projectsId , owner, sha]);
-
return (
@@ -60,7 +59,7 @@ export default ({ match , history }) => {
{commit && commit.message &&
{commit.message}
}
-
+
diff --git a/src/forge/common/util.js b/src/forge/common/util.js
index 86a0a911..4f8f0bf3 100644
--- a/src/forge/common/util.js
+++ b/src/forge/common/util.js
@@ -3,6 +3,6 @@ export function truncateCommitId(str) {
if (str && str.length > 11) {
return str.substring(0, 10)
}else{
- return undefined
+ return str
}
}