chore: bump to eslint-config v2.8.0
(#2651)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
parent
62f70250d5
commit
9da77637b2
48 changed files with 896 additions and 511 deletions
|
@ -30,8 +30,14 @@ const draftState = useDraft(draftKey, initial)
|
|||
const { draft } = draftState
|
||||
|
||||
const {
|
||||
isExceedingAttachmentLimit, isUploading, failedAttachments, isOverDropZone,
|
||||
uploadAttachments, pickAttachments, setDescription, removeAttachment,
|
||||
isExceedingAttachmentLimit,
|
||||
isUploading,
|
||||
failedAttachments,
|
||||
isOverDropZone,
|
||||
uploadAttachments,
|
||||
pickAttachments,
|
||||
setDescription,
|
||||
removeAttachment,
|
||||
dropZoneRef,
|
||||
} = useUploadMediaAttachment(draft)
|
||||
|
||||
|
@ -68,7 +74,7 @@ function trimPollOptions() {
|
|||
const trimmedOptions = draft.value.params.poll!.options.slice(0, indexLastNonEmpty + 1)
|
||||
|
||||
if (currentInstance.value?.configuration
|
||||
&& trimmedOptions.length >= currentInstance.value?.configuration?.polls.maxOptions)
|
||||
&& trimmedOptions.length >= currentInstance.value?.configuration?.polls.maxOptions)
|
||||
draft.value.params.poll!.options = trimmedOptions
|
||||
else
|
||||
draft.value.params.poll!.options = [...trimmedOptions, '']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue