Skip to content

Commit

Permalink
style: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoa committed Nov 5, 2024
1 parent d92d00a commit e276e00
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/editors/data/services/cms/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const apiMethods = {
}) => {
const data = new FormData();
data.append('file', asset);
if ((isLibraryKey(learningContextId))) {
if (isLibraryKey(learningContextId)) {
data.set('content', asset);
return put(
`${urls.libraryAssets({ blockId, studioEndpointUrl })}static/${encodeURI(asset.name)}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const imgListHooks = ({
] = module.state.showSelectImageError(false);
const [showSizeError, setShowSizeError] = module.state.showSizeError(false);
const list = module.displayList({ ...searchSortProps, images });

return {
galleryError: {
show: showSelectImageError,
Expand Down
1 change: 1 addition & 0 deletions src/editors/sharedComponents/TinyMceWidget/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const TinyMceWidget = ({
const { isSourceCodeOpen, openSourceCodeModal, closeSourceCodeModal } = hooks.sourceCodeModalToggle(editorRef);
const { imagesRef } = hooks.useImages({ images, editorContentHtml });
const imageSelection = hooks.selectedImage(null);

return (
<>
{!isLibraryV1Key(learningContextId) && (
Expand Down
2 changes: 1 addition & 1 deletion src/editors/utils/formatLibreryImgRequest.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
parseLibraryImageData, getLibraryImageAssets, getFileMimeType, getFileName, LibraryAssetResponse
parseLibraryImageData, getLibraryImageAssets, getFileMimeType, getFileName, LibraryAssetResponse,
} from './formatLibraryImgRequest';

// Mock the StrictDict function to avoid unnecessary complexity in the test
Expand Down

0 comments on commit e276e00

Please sign in to comment.