Skip to content

Commit

Permalink
Match the approach in sanity-plugin-mux-input
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-matt-hillsdon committed Mar 26, 2024
1 parent 06c923a commit e1f6312
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export interface PythonEditorPluginConfig {
}
}

export const pythonEditor = definePlugin((config: PythonEditorPluginConfig) => {
export const pythonEditor = definePlugin((userConfig: PythonEditorPluginConfig | void) => {
const config = userConfig ?? {}
const types = [
portableTextFactory(config),
pythonIdea,
Expand Down

0 comments on commit e1f6312

Please sign in to comment.