From 06c923aa05daa5ed730f5e9de8cbb097e0746b80 Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Tue, 26 Mar 2024 09:39:19 +0000 Subject: [PATCH] Can't be optional so require empty. --- package.json | 2 +- src/index.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index a920db3..01f6d03 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.ts b/src/index.ts index 6da38de..a646771 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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,