refactor: allow nullable metadata in MessageMetadataDialog
The metadata prop was previously required, but callers sometimes pass null or undefined. Updating the type to allow null/undefined prevents runtime errors and simplifies usage.
This commit is contained in:
parent
74b895c653
commit
ef4e8bf353
@ -58,7 +58,7 @@ interface MessageMetadata {
|
||||
}
|
||||
|
||||
interface MessageMetadataDialogProps {
|
||||
metadata: MessageMetadata // Use the specific interface
|
||||
metadata: MessageMetadata | null | undefined // Use the specific interface
|
||||
triggerElement?: React.ReactNode
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user