fix fixTables

This commit is contained in:
Philipp Kühn
2021-01-23 22:26:35 +01:00
parent 3f30b69f37
commit 71376f6de7

View File

@@ -131,13 +131,11 @@ export const Table = Node.create({
return goToNextCell(-1)(state, dispatch)
},
fixTables: (): Command => ({ state, dispatch }) => {
const transaction = fixTables(state)
if (transaction) {
return dispatch?.(transaction)
if (dispatch) {
fixTables(state)
}
return false
return true
},
}
},