Skip to content

Commit

Permalink
fix: crash on build
Browse files Browse the repository at this point in the history
  • Loading branch information
clovis committed Jun 8, 2024
1 parent 95e177b commit 3066fb9
Show file tree
Hide file tree
Showing 4 changed files with 16,310 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"@bdxtown/canaille": "^1.0.0-rc6",
"@bdxtown/canaille": "^1.0.0-rc7",
"@floating-ui/react": "^0.26.9",
"@mdxeditor/editor": "^2.3.4",
"@mdxeditor/gurx": "^1.1.1",
Expand Down
2 changes: 1 addition & 1 deletion cms/src/bits/ImageUploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const ImageUploader = ({ onPick }: { onPick?: (m: Media) => void }) => {
const onInternalPick = React.useCallback((media: Media, alt: string) => {
editor?.update(() => {
const node = $createImageNode({ src: media.url, altText: alt});
$insertNodes([node]);
$insertNodes([node as never]);
})
setModal(false);
if(onPick) onPick(media);
Expand Down
2 changes: 1 addition & 1 deletion template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}
},
"dependencies": {
"@bdxtown/canaille": "^1.0.0-rc5",
"@bdxtown/canaille": "^1.0.0-rc7",
"@ladle/react": "^4.0.2",
"clean-css": "^5.3.3",
"counterpart": "^0.18.6",
Expand Down
Loading

0 comments on commit 3066fb9

Please sign in to comment.