mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 19:36:25 +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 {
|
||||
if (_loadState != NoteLoadState.Loaded) return "";
|
||||
|
||||
_summary ??= stripMarkdownFormatting(body);
|
||||
return _summary;
|
||||
}
|
||||
|
Reference in New Issue
Block a user