Skip to content

Commit

Permalink
Merge branch 'develop' into Fix-ohcnetwork#7244-1
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafMd-1 authored Apr 16, 2024
2 parents cbe9b95 + 6500fc6 commit b5190ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Scribe/Scribe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const Scribe: React.FC<ScribeProps> = ({ fields, onFormUpdate }) => {
const newFile = new File([f], `${internal_name}`, { type: f.type });
const config = {
headers: {
"Content-type": newFile?.type,
"Content-type": newFile?.type?.split(";")?.[0],
"Content-disposition": "inline",
},
};
Expand Down Expand Up @@ -120,7 +120,7 @@ export const Scribe: React.FC<ScribeProps> = ({ fields, onFormUpdate }) => {
name: filename,
associating_id: associatingId,
file_category: category,
mime_type: audioBlob?.type.split(";")[0],
mime_type: audioBlob?.type?.split(";")?.[0],
},
})
.then((response) => {
Expand Down

0 comments on commit b5190ef

Please sign in to comment.