Skip to content

Commit

Permalink
Can't be optional so require empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-matt-hillsdon committed Mar 26, 2024
1 parent fddf5a0 commit 06c923a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microbit/sanity-plugin-python-editor-v3",
"version": "0.1.0-pre.1",
"version": "0.1.0-pre.4",
"description": "Sanity schemas for the micro:bit Python Editor V3",
"keywords": [
"sanity",
Expand Down
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export interface PythonEditorPluginConfig {
}
}

export const pythonEditor = definePlugin((config?: PythonEditorPluginConfig) => {
// eslint-disable-next-line no-param-reassign
config = config ?? {}
export const pythonEditor = definePlugin((config: PythonEditorPluginConfig) => {
const types = [
portableTextFactory(config),
pythonIdea,
Expand Down

0 comments on commit 06c923a

Please sign in to comment.