Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed Oct 2, 2023
1 parent f47fdba commit 9229a31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/caption/src/onKeyDownCaption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const onKeyDownCaption: KeyboardHandler<CaptionPlugin> =

// focus caption from image
if (isHotkey('down', e)) {
const types = getPluginTypes(editor, options.pluginKeys);
const types = getPluginTypes(editor, options.pluginKeys!);

const entry = getBlockAbove(editor, {
match: { type: types },
Expand Down
2 changes: 1 addition & 1 deletion packages/caption/src/withCaption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const withCaption = <
newSelection &&
isCollapsed(newSelection)
) {
const types = getPluginTypes(editor, pluginKeys);
const types = getPluginTypes(editor, pluginKeys!);

const entry = getAboveNode(editor, {
at: newSelection,
Expand Down

0 comments on commit 9229a31

Please sign in to comment.