mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-03-12 10:14:22 -05:00
fix: handle commit user null
This commit is contained in:
@@ -36,6 +36,7 @@ class TimelineItem extends StatelessWidget {
|
||||
Expanded(
|
||||
child: RichText(
|
||||
text: TextSpan(style: TextStyle(color: Colors.black), children: [
|
||||
// TODO: actor is null
|
||||
createUserSpan(actor),
|
||||
textSpan,
|
||||
// TextSpan(text: ' ' + TimeAgo.formatFromString(item['createdAt']))
|
||||
@@ -83,7 +84,9 @@ class TimelineItem extends StatelessWidget {
|
||||
// common types
|
||||
case 'Commit':
|
||||
return _buildItem(
|
||||
actor: item['author']['user']['login'],
|
||||
actor: item['author']['user'] == null
|
||||
? null
|
||||
: item['author']['user']['login'],
|
||||
iconData: Octicons.git_commit,
|
||||
textSpan: TextSpan(children: [
|
||||
TextSpan(text: ' added commit '),
|
||||
|
||||
Reference in New Issue
Block a user