mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Make explicit the undefined check to disable the attachment button
This commit is contained in:
parent
906d6017e4
commit
88c52e41f0
1 changed files with 1 additions and 1 deletions
|
@ -1412,7 +1412,7 @@ function Compose({
|
|||
class="toolbar-button gif-picker-button"
|
||||
disabled={
|
||||
uiState === 'loading' ||
|
||||
!(mediaAttachments.length < maxMediaAttachments) ||
|
||||
(maxMediaAttachments !== undefined && mediaAttachments.length >= maxMediaAttachments) ||
|
||||
!!poll
|
||||
}
|
||||
onClick={() => {
|
||||
|
|
Loading…
Reference in a new issue