Skip to content

Commit

Permalink
fix: removes commented code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tushar504 committed Feb 25, 2025
1 parent ec92b43 commit 419419d
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/application/services/useNote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,6 @@ export default function (options: UseNoteComposableOptions): UseNoteComposableSt

const route = useRoute();

/**
* Is there any note currently saving
* Used to prevent re-load note after draft is saved
*/
// const isNoteSaving = ref<boolean>(false);

/**
* Note Title identifier
*/
Expand Down Expand Up @@ -219,8 +213,6 @@ export default function (options: UseNoteComposableOptions): UseNoteComposableSt
*/
const specifiedNoteTools = resolveToolsByContent(content);

// isNoteSaving.value = true;

if (currentId.value === null) {
/**
* @todo try-catch domain errors
Expand Down Expand Up @@ -251,8 +243,6 @@ export default function (options: UseNoteComposableOptions): UseNoteComposableSt
* Store just saved content in memory
*/
lastUpdateContent.value = content;

// isNoteSaving.value = false;
}

/**
Expand Down Expand Up @@ -308,16 +298,6 @@ export default function (options: UseNoteComposableOptions): UseNoteComposableSt
return;
}

// const isDraftSaving = prevId === null && isNoteSaving.value;

/**
* Case for newly created note,
* we don't need to re-load it
*/
// if (isDraftSaving) {
// return;
// }

void load(newId);
});

Expand Down

0 comments on commit 419419d

Please sign in to comment.