Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const localLoading = computed({
const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp']
const documentExtensions = ['pdf', 'docx', 'txt', 'xls', 'xlsx', 'md', 'html', 'csv']
const videoExtensions = ['mp4', 'avi', 'mov', 'mkv', 'flv']
const audioExtensions = ['mp3', 'wav', 'ogg', 'aac']
const audioExtensions = ['mp3', 'wav', 'ogg', 'aac', 'm4a']

const getAcceptList = () => {
const { image, document, audio, video } = props.applicationDetails.file_upload_setting
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no significant issues with the current code, but here is a minor suggestion:

  1. Remove Trailing Commas: The trailing comma after props.applicationDetails.file_upload_setting could be removed to make the syntax more concise.

Revised Code:

@@ -260,7 +260,7 @@
 const localLoading = computed({
 const imageExtensions=['jpg','jpeg','png','gif','bmp']
 const documentExtensions=['pdf','docx','txt','xls','xlsx','md','html','csv']
 const videoExtensions =['mp4','avi','mov','mkv','flv']
-const audioExtensions=['mp3','wav','ogg','aac']
+const audioExtensions=['mp3','wav','ogg','aac','m4a']

 const getAcceptList = () => {
   const {image , document, audio, video} = props.applicationDetails.file_upload_setting

This change makes the syntax cleaner and less error-prone.

Expand Down