mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-03 04:31:46 +02:00
feat: remove placeholder insertion
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user