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
thrownewTypeError(format('invalid assignment. `%s` must be one of the following: "%s". Value: `%s`.',prop.name,join(sortOrders(),'", "'),value));
85
+
if(!isCompareOrder(value)){
86
+
thrownewTypeError(format('invalid assignment. `%s` must be one of the following: "%s". Value: `%s`.',prop.name,join(compareOrders(),'", "'),value));
87
87
}
88
88
value=[value];
89
89
}else{
90
90
// Validate each order value...
91
91
for(i=0;i<value.length;i++){
92
-
if(!isSortOrder(value[i])){
93
-
thrownewTypeError(format('invalid assignment. `%s` must be one of the following: "%s". Value: `%s`.',prop.name,join(sortOrders(),'", "'),value[i]));
92
+
if(!isCompareOrder(value[i])){
93
+
thrownewTypeError(format('invalid assignment. `%s` must be one of the following: "%s". Value: `%s`.',prop.name,join(compareOrders(),'", "'),value[i]));
0 commit comments