mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 09:15:33 +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"
|
class="toolbar-button gif-picker-button"
|
||||||
disabled={
|
disabled={
|
||||||
uiState === 'loading' ||
|
uiState === 'loading' ||
|
||||||
!(mediaAttachments.length < maxMediaAttachments) ||
|
(maxMediaAttachments !== undefined && mediaAttachments.length >= maxMediaAttachments) ||
|
||||||
!!poll
|
!!poll
|
||||||
}
|
}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|
Loading…
Reference in a new issue