Skip to content

Commit 582f4fb

Browse files
committed
chore: Do only show fileDescription if filename is not null
1 parent 0d438ee commit 582f4fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/file_description.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extension FileDescriptionExtension on Event {
1313

1414
final filename = content.tryGet<String>('filename');
1515
final body = content.tryGet<String>('body');
16-
if (filename != body && body != null) return body;
16+
if (filename != body && body != null && filename != null) return body;
1717
return null;
1818
}
1919
}

0 commit comments

Comments
 (0)