chore: Do only show fileDescription if filename is not null
This commit is contained in:
parent
0d438ee1ac
commit
582f4fb9ed
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ extension FileDescriptionExtension on Event {
|
|||
|
||||
final filename = content.tryGet<String>('filename');
|
||||
final body = content.tryGet<String>('body');
|
||||
if (filename != body && body != null) return body;
|
||||
if (filename != body && body != null && filename != null) return body;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue