Skip to content

Commit

Permalink
Merge pull request #989 from peer-42seoul/hotfix-1.0.3/admin-toastedi…
Browse files Browse the repository at this point in the history
…tor-image-upload

[1.0.3/ADMIN] 토스트 에디터 내 이미지 업로드 안됨 문제 해결
  • Loading branch information
HiHoi authored Feb 14, 2024
2 parents 6ca8c54 + 17935af commit e1a1465
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DynamicToastEditorAdmin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props extends IToastEditorProps {
}

const ToastEditorAdmin = dynamic(
() => import('./ToastUIEditor'), // ToastEditor 컴포넌트의 경로
() => import('./ToastUIEditorAdmin'), // ToastEditor 컴포넌트의 경로
{ ssr: false }, // 서버 사이드 렌더링 비활성화
)

Expand Down
1 change: 1 addition & 0 deletions src/components/ToastUIEditorAdmin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const ToastEditorAdmin = ({
`${API_URL}/api/v1/admin/editor/image`,
formData,
{
withCredentials: true,
headers: {
'Content-Type': 'multipart/form-data',
},
Expand Down

0 comments on commit e1a1465

Please sign in to comment.