Skip to content

Commit c4f14cd

Browse files
committed
comments
1 parent 45a4058 commit c4f14cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/application/services/useNoteHistory.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ export default function useNoteHistory(options: UseNoteHistoryComposableOptions)
103103
}
104104
});
105105

106+
/**
107+
* Watch fot the history id to load new history record when it is needed
108+
*/
106109
watch(currentHistoryId, async (historyId) => {
107110
if (notEmpty(historyId) && currentNoteId.value !== null) {
108111
await loadNoteHistoryRecord(currentNoteId.value, historyId);

0 commit comments

Comments
 (0)