File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments