Fixed error when pressing enter inside a caption

refs e419e4e99f

- added an optional options param to `addParagraphAfterCard` but was missing a default value meaning the destructuring errored when the param wasn't provided
This commit is contained in:
Kevin Ansfield 2021-11-30 17:59:59 +00:00
parent 1dac565dbc
commit 024b27c8dd

View File

@ -680,7 +680,7 @@ export default Component.extend({
} }
}, },
addParagraphAfterCard(card, {scrollIntoView = false}) { addParagraphAfterCard(card, {scrollIntoView = false} = {}) {
let editor = this.editor; let editor = this.editor;
let section = this.getSectionFromCard(card); let section = this.getSectionFromCard(card);
let collection = section.parent.sections; let collection = section.parent.sections;