diff --git a/src/components/ProjectPreview.jsx b/src/components/ProjectPreview.jsx index 49a7d3cd08..0ebd56c4a9 100644 --- a/src/components/ProjectPreview.jsx +++ b/src/components/ProjectPreview.jsx @@ -27,7 +27,7 @@ export default function ProjectPreview({ {preview.slice(0, MAX_LENGTH)} {!isNil(project.updatedAt) && (
- {moment(project.updatedAt).fromNow()} + {moment(project.updatedAt).fromNow() || '\b'}
)} diff --git a/src/util/compileProject.js b/src/util/compileProject.js index 1056138e84..4d6f4d2a80 100644 --- a/src/util/compileProject.js +++ b/src/util/compileProject.js @@ -199,7 +199,7 @@ export async function addJavascript(doc, {sources: {javascript}}, opts) { export function generateTextPreview(project) { const {title} = constructDocument(project); - return (title || '').trim(); + return (title || '\b').trim(); } export default async function compileProject(project, {isInlinePreview} = {}) {