Skip to content

Commit

Permalink
fix: webp
Browse files Browse the repository at this point in the history
  • Loading branch information
trueai-org committed Aug 18, 2024
1 parent 4191503 commit 4697631
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pages/Draw/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,6 @@ const Draw: React.FC = () => {
});
};



const getTaskMarkdownInfo = (task: any) => {
if (!task.properties['finalPrompt']) {
return <></>;
Expand Down Expand Up @@ -815,7 +813,7 @@ const Draw: React.FC = () => {
);
}
};

const actionArea = () => {
if (botType === 'INSIGHT_FACE' || botType === 'FACE_SWAP') {
return (
Expand Down Expand Up @@ -1050,7 +1048,10 @@ const Draw: React.FC = () => {

const beforeUpload = (file: RcFile) => {
const isJpgOrPng =
file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'video/mp4';
file.type === 'image/jpeg' ||
file.type === 'image/png' ||
file.type === 'video/mp4' ||
file.type === 'image/webp';
if (!isJpgOrPng) {
message.error(intl.formatMessage({ id: 'pages.draw.onlyJpgPng' }));
}
Expand Down

0 comments on commit 4697631

Please sign in to comment.