mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +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);
|
var settings = Provider.of<Settings>(context);
|
||||||
|
|
||||||
if (editorType == EditorType.Journal) {
|
if (editorType == EditorType.Journal && settings.journalEditorSingleNote) {
|
||||||
if (settings.journalEditorSingleNote) {
|
var note = await getTodayJournalEntry(fsFolder.rootFolder);
|
||||||
var note = await getTodayJournalEntry(fsFolder.rootFolder);
|
if (note != null) {
|
||||||
return openNoteEditor(
|
return openNoteEditor(
|
||||||
context,
|
context,
|
||||||
note,
|
note,
|
||||||
|
Reference in New Issue
Block a user