mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
Handle maxMediaAttachments
being undefined while creating the file input button
This commit is contained in:
parent
f7d783314e
commit
143b38979b
1 changed files with 1 additions and 1 deletions
|
@ -1318,7 +1318,7 @@ function Compose({
|
|||
<input
|
||||
type="file"
|
||||
accept={supportedMimeTypes?.join(',')}
|
||||
multiple={mediaAttachments.length < maxMediaAttachments - 1}
|
||||
multiple={maxMediaAttachments ? mediaAttachments.length < maxMediaAttachments - 1 : true}
|
||||
disabled={
|
||||
uiState === 'loading' ||
|
||||
mediaAttachments.length >= maxMediaAttachments ||
|
||||
|
|
Loading…
Add table
Reference in a new issue