mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 20:43:20 +08:00
Note: Do not try to generate the summary if not loaded
This commit is contained in:
@ -120,6 +120,8 @@ class Note with ChangeNotifier implements Comparable<Note> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String get summary {
|
String get summary {
|
||||||
|
if (_loadState != NoteLoadState.Loaded) return "";
|
||||||
|
|
||||||
_summary ??= stripMarkdownFormatting(body);
|
_summary ??= stripMarkdownFormatting(body);
|
||||||
return _summary;
|
return _summary;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user