Skip to content

Commit

Permalink
Fix unexpected token in index.js (Rollup) (#4538)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaX-Projects committed May 23, 2024
1 parent 393d83e commit c1e115c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/src/commands/joinItemBackward.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ declare module '@tiptap/core' {
}

export const joinItemBackward: RawCommands['joinItemBackward'] = () => ({
tr, state, dispatch,
state,
dispatch,
tr,
}) => {
try {
const point = joinPoint(state.doc, state.selection.$from.pos, -1)
Expand All @@ -31,7 +33,7 @@ export const joinItemBackward: RawCommands['joinItemBackward'] = () => ({
}

return true
} catch {
} catch (e) {
return false
}
}

0 comments on commit c1e115c

Please sign in to comment.