Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-matt-hillsdon committed Mar 26, 2024
1 parent f5f7a48 commit 8723724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schemas/portableText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const portableTextFactory = (config: PythonEditorPluginConfig): SchemaTyp
annotations: [
toolkitInternalLink,
toolkitApiLink,
config.overrides.externalLink ?? externalLink,
config.overrides?.externalLink ?? externalLink,
// There seems to be an issue with validation-related types here, hence the kludge.
] as unknown as ArrayOfType<'object' | 'reference', undefined>[],
},
Expand Down

0 comments on commit 8723724

Please sign in to comment.