Skip to content

Commit 916fc8c

Browse files
committed
chore: minor fixes
1 parent b94e7ee commit 916fc8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/extensions/SuggestionMenu/SuggestionPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SuggestionMenuView {
2424
pluginState: SuggestionPluginState;
2525

2626
constructor(
27-
private readonly editor: BlockNoteEditor,
27+
private readonly editor: BlockNoteEditor<any, any, any>,
2828
emitUpdate: (menuName: string, state: SuggestionMenuState) => void,
2929
view: EditorView,
3030
) {

packages/core/src/util/topo-sort.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export function sortByDependencies(
169169
const dag = createDependencyGraph();
170170

171171
for (const item of items) {
172-
if (item.runsBefore) {
172+
if (Array.isArray(item.runsBefore) && item.runsBefore.length > 0) {
173173
item.runsBefore.forEach((runBefore) => {
174174
addDependency(dag, item.key, runBefore);
175175
});

0 commit comments

Comments
 (0)