feat: remove placeholder insertion

This commit is contained in:
thecodrr
2022-06-28 06:47:21 +05:00
parent a127af1456
commit b2c7302005
2 changed files with 2 additions and 8 deletions

View File

@@ -109,10 +109,7 @@ function DiffViewer(props) {
notesStore.setSelectedNote(noteId);
note = note.data;
const content = await db.content.insertPlaceholders(
await db.content.raw(note.contentId),
"/placeholder.svg"
);
const content = await db.content.raw(note.contentId);
if (!content.conflicted)
return resolveConflict({
toKeep: content.data,

View File

@@ -249,10 +249,7 @@ class EditorStore extends BaseStore {
const session = this.get().session;
switch (session.sessionType) {
case "default":
return await db.content.insertPlaceholders(
await db.content.raw(session.contentId),
"/placeholder.svg"
);
return await db.content.raw(session.contentId);
case "preview":
return session.content;
case "locked":