Skip to content

Commit

Permalink
Merge branch 'feat/1.4.2/ui' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
shuashuai committed Nov 22, 2024
2 parents d99bfcc + 0569ea9 commit 7fefc67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/Editor/ToolBars/file.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const Image = ({ editorInstance }) => {
});
};

if (!authorized_attachment_extensions.length) {
if (!authorized_attachment_extensions?.length) {
return null;
}

Expand Down
4 changes: 2 additions & 2 deletions ui/src/pages/Admin/Write/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ const Index: FC = () => {
max_attachment_size: Number(formData.max_attachment_size.value),
max_image_megapixel: Number(formData.max_image_megapixel.value),
authorized_image_extensions:
formData.authorized_image_extensions.value.length > 0
formData.authorized_image_extensions.value?.length > 0
? formData.authorized_image_extensions.value
.split(',')
?.map((item) => item.trim().toLowerCase())
: [],
authorized_attachment_extensions:
formData.authorized_attachment_extensions.value.length > 0
formData.authorized_attachment_extensions.value?.length > 0
? formData.authorized_attachment_extensions.value
.split(',')
?.map((item) => item.trim().toLowerCase())
Expand Down

0 comments on commit 7fefc67

Please sign in to comment.