File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 11# UnderScript Changelog
22
3- ## Version 0.52.2 (2023-04-15)
4- 1 . Added craft/disenchant protection when double clicking
3+ ## Version 0.53.0 (2023-05-21)
4+ ### New Features
5+ 1 . Added craft/disenchant protection to prevent double clicking
6+ 1 . Added new ranks to board background priority
7+ ### Fixes
581 . Fix background of ` @autocomplete `
69
710## Version 0.52.1 (2023-04-05)
Original file line number Diff line number Diff line change @@ -99,9 +99,16 @@ function getValue(item) {
9999 return item ;
100100}
101101
102- function getLabel ( item ) {
102+ function getLabel ( item ,
103+ // allow only one level of function calls
104+ allowed = true ) {
105+ if ( allowed && typeof item === 'function' ) {
106+ return getLabel ( item ( ) , false ) ;
107+ }
103108 if ( typeof item === 'object' ) {
104- return item . label || item . text ;
109+ return getLabel ( item . label || item . text , allowed ) ;
105110 }
111+ if ( ! item ) throw new Error ( 'Label not provided' ) ;
112+ if ( typeof item !== 'string' ) throw new Error ( `Unknown label: ${ typeof item } ` ) ;
106113 return item ;
107114}
You can’t perform that action at this time.
0 commit comments