Skip to content

Commit

Permalink
🐛 Fix error on figure node being null (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 authored Nov 23, 2022
1 parent 70db077 commit 6421919
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
5 changes: 1 addition & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
{
"name": "@curvenote/monorepo-editor",
"version": "0.0.0",
"private": true,
"workspaces": [
"apps/*",
"packages/*"
],
"scripts": {
"build": "turbo run build",
"build:cypress": "turbo run build --filter schema --filter prosemirror* --filter prosemirror-utils --filter sidenotes --filter emoji",
"dev": "turbo run dev --parallel",
"start": "turbo run start --parallel",
"start": "turbo run start",
"start:editor": "turbo run start --filter editor",
"clean": "turbo run clean --parallel && find . -name '.turbo' -type d -prune -exec rm -rf '{}' +",
"lint": "turbo run lint",
"lint:format": "turbo run lint:format",
Expand Down
3 changes: 2 additions & 1 deletion packages/schema/src/nodes/figure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ export const toMarkdown: MdFormatSerialize = (state, node, parent, index) => {
return;
}
default:
throw new Error(`Unknown figure kind: "${kind}"`);
console.log(`Unknown figure kind: "${kind}", id=${id}, children=${node.childCount}`);
return;
}
};

Expand Down
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"outputs": []
},
"start": {
"dependsOn": ["^build"],
"outputs": []
}
}
Expand Down

0 comments on commit 6421919

Please sign in to comment.