Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
HyTekCoop committed Dec 11, 2023
1 parent 99eef88 commit 351a43d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/application/services/useNote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ interface UseNoteComposableState {
/**
* Title for bookmarks in the browser
*/
title: Ref<string>;
noteTitle: Ref<string>;
}

interface UseNoteComposableOptions {
Expand Down
6 changes: 3 additions & 3 deletions src/presentation/pages/Note.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const props = defineProps<{
const noteId = computed(() => props.id);
const { note, save, title, canEdit } = useNote({
const { note, save, noteTitle, canEdit } = useNote({
id: noteId,
});
Expand Down Expand Up @@ -62,9 +62,9 @@ if (!props.id) {
});
} else {
watchEffect(() => {
if (title.value) {
if (noteTitle.value) {
useHead({
title: title.value,
title: noteTitle.value,
});
}
});
Expand Down

0 comments on commit 351a43d

Please sign in to comment.