Skip to content

Commit

Permalink
feat: fixed function named
Browse files Browse the repository at this point in the history
  • Loading branch information
vladislavkeblysh committed Sep 10, 2024
1 parent 25221c9 commit be6a06a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TinyMCEEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const TinyMCEEditor = (props) => {
const filename = blobInfo.filename();
const { location } = await uploadFile(blob, filename, courseId, postId || 'root');
const img = new Image();
img.onload = function () {
img.onload = () => {
if (img.height > 999 || img.width > 999) { setShowImageWarning(true); }
};
img.src = location;
Expand Down

0 comments on commit be6a06a

Please sign in to comment.