You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throwError('Using a CSS selector as the first argument is deprecated. Please look here: https://github.com/Drarig29/brackets-viewer.js');
62
+
60
63
constroot=document.createDocumentFragment();
61
64
62
65
this.config={
@@ -72,6 +75,15 @@ export class BracketsViewer {
72
75
if(config?.onMatchClick)
73
76
this._onMatchClick=config.onMatchClick;
74
77
78
+
if(!data.stages?.length)
79
+
throwError('The `data.stages` array is either empty or undefined');
80
+
81
+
if(!data.participants?.length)
82
+
throwError('The `data.participants` array is either empty or undefined');
83
+
84
+
if(!data.matches?.length)
85
+
throwError('The `data.matches` array is either empty or undefined');
0 commit comments