Skip to content

Commit

Permalink
fix(note-settings): eslint error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
neSpecc committed Oct 18, 2023
1 parent cf6b47f commit 6f434aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/application/services/useNoteSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface UseNoteSettingsComposableState {
*
* @param id - note id
*/
load: (id: NoteId | null) => Promise<void>;
load: (id: NoteId) => Promise<void>;
}


Expand All @@ -35,10 +35,8 @@ export default function (): UseNoteSettingsComposableState {
*
* @param id - Note id
*/
const load = async (id: NoteId | null): Promise<void> => {
if (id) {
noteSettings.value = await noteSettingsService.getNoteSettingsById(id);
}
const load = async (id: NoteId): Promise<void> => {
noteSettings.value = await noteSettingsService.getNoteSettingsById(id);
};


Expand Down
2 changes: 1 addition & 1 deletion src/presentation/pages/NoteSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const props = defineProps<{
/**
* Id of the current note
*/
id: NoteId | null;
id: NoteId;
}>();
const { load, noteSettings } = useNoteSettings();
Expand Down

0 comments on commit 6f434aa

Please sign in to comment.