mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 01:05:34 +03:00
Handle maxMediaAttachments
being undefined while creating the gif picker button
This commit is contained in:
parent
143b38979b
commit
61946a8e67
1 changed files with 1 additions and 1 deletions
|
@ -1410,7 +1410,7 @@ function Compose({
|
|||
class="toolbar-button gif-picker-button"
|
||||
disabled={
|
||||
uiState === 'loading' ||
|
||||
mediaAttachments.length >= maxMediaAttachments ||
|
||||
(maxMediaAttachments ? mediaAttachments.length >= maxMediaAttachments : true) ||
|
||||
!!poll
|
||||
}
|
||||
onClick={() => {
|
||||
|
|
Loading…
Reference in a new issue