Skip to content

Commit baf7f0b

Browse files
committed
Fix to issue popcodeorg#2012
1 parent 1dd2c92 commit baf7f0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/ProjectPreview.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function ProjectPreview({
2727
{preview.slice(0, MAX_LENGTH)}
2828
{!isNil(project.updatedAt) && (
2929
<div className="project-preview__timestamp">
30-
{moment(project.updatedAt).fromNow()}
30+
{moment(project.updatedAt).fromNow() || '\b'}
3131
</div>
3232
)}
3333
</div>

src/util/compileProject.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export async function addJavascript(doc, {sources: {javascript}}, opts) {
199199

200200
export function generateTextPreview(project) {
201201
const {title} = constructDocument(project);
202-
return (title || '').trim();
202+
return (title || '\b').trim();
203203
}
204204

205205
export default async function compileProject(project, {isInlinePreview} = {}) {

0 commit comments

Comments
 (0)