mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Fix One Journal Entry Per Day
I wasn't handling the case when there is no journal entry for that day.
This commit is contained in:
@ -171,9 +171,9 @@ class _FolderViewState extends State<FolderView> {
|
||||
|
||||
var settings = Provider.of<Settings>(context);
|
||||
|
||||
if (editorType == EditorType.Journal) {
|
||||
if (settings.journalEditorSingleNote) {
|
||||
var note = await getTodayJournalEntry(fsFolder.rootFolder);
|
||||
if (editorType == EditorType.Journal && settings.journalEditorSingleNote) {
|
||||
var note = await getTodayJournalEntry(fsFolder.rootFolder);
|
||||
if (note != null) {
|
||||
return openNoteEditor(
|
||||
context,
|
||||
note,
|
||||
|
Reference in New Issue
Block a user