File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -208,11 +208,12 @@ $(document).ready(() => {
208208 // Get the ScanCode version and options data from the DB and populate and open the modal
209209 function getScanInfo ( ) {
210210 return aboutCodeDB . sync
211- . then ( ( db ) => db . Header . findById ( 1 ) . then ( header => {
212- scancode_label = $ ( '#scancode-label' ) . find ( '#scancode-display' ) ;
213- scancode_label . text ( 'ScanCode version: ' + header . scancode_version + '\n\nScanCode options: ' + JSON . stringify ( header . scancode_options , null , 2 ) ) ;
214- } ) )
215- . then ( $ ( "#myModal" ) . modal ( 'show' ) ) ;
211+ . then ( ( db ) => db . Header . findById ( 1 )
212+ . then ( ( header ) => {
213+ const scancode_label = $ ( '#scancode-label' ) . find ( '#scancode-display' ) ;
214+ scancode_label . text ( 'ScanCode version: ' + header . scancode_version + '\n\nScanCode options: ' + JSON . stringify ( header . scancode_options , null , 2 ) ) ;
215+ } ) )
216+ . then ( $ ( '#myModal' ) . modal ( 'show' ) ) ;
216217 }
217218
218219 /** Loads data for all views based on the current data */
You can’t perform that action at this time.
0 commit comments