fix: Guard against empty attachment size
I don't see how this can happen based on default props, but it does
This commit is contained in:
@@ -86,7 +86,7 @@ export default class Attachment extends Node {
|
||||
onMouseDown={this.handleSelect(props)}
|
||||
context={
|
||||
node.attrs.href ? (
|
||||
bytesToHumanReadable(node.attrs.size)
|
||||
bytesToHumanReadable(node.attrs.size || "0")
|
||||
) : (
|
||||
<>
|
||||
<Trans>Uploading</Trans>…
|
||||
|
||||
Reference in New Issue
Block a user