Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
fix: extensions prop should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
tommoor committed Nov 17, 2021
1 parent 5c0a62e commit b10fb00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export type Props = {
value?: string;
defaultValue: string;
placeholder: string;
extensions: Extension[];
extensions?: Extension[];
disableExtensions?: (
| "strong"
| "code_inline"
Expand Down Expand Up @@ -411,7 +411,7 @@ class RichMarkdownEditor extends React.PureComponent<Props, State> {
}
return true;
}),
...this.props.extensions,
...(this.props.extensions || []),
],
this
);
Expand Down

0 comments on commit b10fb00

Please sign in to comment.