Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jxjj committed Jan 22, 2025
1 parent 69cbe6a commit e09372e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions resources/client/components/BlockEditor/BlockEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,8 @@ const blockTypes = computed(() => {
});
function addEditorBlock(type: ContentBlock["type"]) {
console.log("addEditorBlock", type);
const newBlock = makeContentBlock(type);
emit("update:modelValue", [...props.modelValue, newBlock]);
// attempt to focus the drag handle of the new block
// a little hacky. Not sure if it's better or not to do this.
setTimeout(() => {
focusBlockDragHandle(newBlock);
}, 250);
}
function removeBlock(id: string) {
Expand Down
1 change: 0 additions & 1 deletion tests/cypress/e2e/deckPracticePage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ describe("DeckShowPage", () => {
cy.contains(/Front side \d/).then(($el: JQuery<HTMLElement>) => {
// we should not see the same card again
const cardText = $el.text();
console.log({ cardText });
expect(cardsSeen.has(cardText)).to.be.false;
cardsSeen.add(cardText);
});
Expand Down

0 comments on commit e09372e

Please sign in to comment.