Skip to content
Snippets Groups Projects
Commit 810b9e23 authored by chris's avatar chris
Browse files

remove if

parent 6183ff7c
No related branches found
No related tags found
1 merge request!359new node structure
......@@ -183,9 +183,7 @@ const QuestionEditorComponent = ({ node, view, getPos }) => {
for (let i = 0; i < transactions.length; i++) {
const { steps } = transactions[i];
for (let j = 0; j < steps.length; j++)
if (steps[j].map(offsetMap) !== null)
if (steps[j].map(offsetMap) !== null)
outerTr.step(steps[j].map(offsetMap));
outerTr.step(steps[j].map(offsetMap));
}
if (outerTr.docChanged)
context.view.main.dispatch(outerTr.setMeta('outsideView', questionId));
......
......@@ -6,7 +6,7 @@ const questionNode = {
id: { default: uuidv4() },
},
group: 'block questions',
content: 'block* list_item*',
content: 'block* list_item?',
defining: true,
parseDOM: [
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment