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