forked from eatvio/eatvio_app
feat: webview
This commit is contained in:
@@ -14,7 +14,11 @@ class DiaryRepository {
|
||||
});
|
||||
|
||||
Future<DiaryDayModel> getDiaryByDate(String date) async {
|
||||
return (await getDiaryIndexByDate(date)).last;
|
||||
try {
|
||||
return (await getDiaryIndexByDate(date)).last;
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
Future<List<DiaryDayModel>> getDiaryIndexByDate(String date) async {
|
||||
|
||||
Reference in New Issue
Block a user