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) return goToNextCell(-1)(state, dispatch)
}, },
fixTables: (): Command => ({ state, dispatch }) => { fixTables: (): Command => ({ state, dispatch }) => {
const transaction = fixTables(state) if (dispatch) {
fixTables(state)
if (transaction) {
return dispatch?.(transaction)
} }
return false return true
}, },
} }
}, },