Skip to content

Commit b114c00

Browse files
author
mosugi
committed
fix: Problem that Code block is not displayed if even one import fails.
1 parent 6e5aa56 commit b114c00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/NotionPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import styles from './styles.module.css'
3535
const Code = dynamic(() =>
3636
import('react-notion-x/build/third-party/code').then(async (m) => {
3737
// add / remove any prism syntaxes here
38-
await Promise.all([
38+
await Promise.allSettled([
3939
import('prismjs/components/prism-markup-templating.js'),
4040
import('prismjs/components/prism-markup.js'),
4141
import('prismjs/components/prism-bash.js'),

0 commit comments

Comments
 (0)