Skip to content

Commit 56947a9

Browse files
committed
Fix empty custom blocks breaking the popup
1 parent 0300a92 commit 56947a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

addons/middle-click-popup/WorkspaceQuerier.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,9 @@ class TokenTypeBlock extends TokenType {
868868
* @yields {Token[]}
869869
*/
870870
*_parseSubtokens(query, idx, subtokenProviders, depth, tokenProviderIdx = 0, parseNextToken = true) {
871+
if (tokenProviderIdx >= subtokenProviders.length)
872+
return;
873+
871874
idx = query.skipIgnorable(idx);
872875
let tokenProvider = subtokenProviders[tokenProviderIdx];
873876

0 commit comments

Comments
 (0)