fix: no file
This commit is contained in:
		
							parent
							
								
									e6464b64af
								
							
						
					
					
						commit
						cda8dda33f
					
				|  | @ -734,7 +734,7 @@ function saveServerDraft() { | |||
| 			visibility: visibility.value, | ||||
| 			localOnly: localOnly.value, | ||||
| 			hashtag: hashtags.value, | ||||
| 			fileIds: files.value.map(f => f.id), | ||||
| 			...(files.value.length > 0 ? { fileIds: files.value.map(f => f.id) } : {}), | ||||
| 			poll: poll.value, | ||||
| 			visibleUserIds: visibility.value === 'specified' ? visibleUsers.value.map(x => x.id) : undefined, | ||||
| 			renoteId: renoteTargetNote.value ? renoteTargetNote.value.id : undefined, | ||||
|  | @ -752,7 +752,7 @@ function saveServerDraft() { | |||
| 			visibility: visibility.value, | ||||
| 			localOnly: localOnly.value, | ||||
| 			hashtag: hashtags.value, | ||||
| 			fileIds: files.value.map(f => f.id), | ||||
| 			...(files.value.length > 0 ? { fileIds: files.value.map(f => f.id) } : {}), | ||||
| 			poll: poll.value, | ||||
| 			visibleUserIds: visibility.value === 'specified' ? visibleUsers.value.map(x => x.id) : undefined, | ||||
| 			renoteId: renoteTargetNote.value ? renoteTargetNote.value.id : undefined, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue