@@ -526,17 +526,6 @@ function periodogramSuccess(popupId, hideDropDown = false) {
526
526
sortInfo : sortInfoString ( 'SDE' , false ) // sort peak table by column SDE, descending
527
527
} , { tbl_id : LC . PEAK_TABLE , pageSize : parseInt ( peak ) , noPeriodUpdate : true } ) ;
528
528
529
- if ( tReq2 !== null ) {
530
- dispatchTableSearch ( tReq2 , { removable : true , tbl_group : LC . PERIODOGRAM_GROUP } ) ;
531
- const xyPlotParams = {
532
- x : { columnOrExpr : LC . PEAK_CNAME , options : 'grid' } ,
533
- y : { columnOrExpr : LC . POWER_CNAME , options : 'grid' } ,
534
- plotStyle : 'linepoints'
535
-
536
- } ;
537
- loadXYPlot ( { chartId : LC . PEAK_TABLE , tblId : LC . PEAK_TABLE , xyPlotParams, help_id : 'findpTSV.pgramresults' } ) ;
538
- }
539
-
540
529
var tReq = makeTblRequest ( 'LightCurveProcessor' , LC . PERIODOGRAM_TABLE , {
541
530
original_table : srcFile ,
542
531
x : get ( defPeriod , [ pKeyDef . time . fkey , 'value' ] ) || get ( layoutInfo , [ LC . MISSION_DATA , LC . META_TIME_CNAME ] ) ,
@@ -569,6 +558,16 @@ function periodogramSuccess(popupId, hideDropDown = false) {
569
558
help_id : 'findpTSV.pgramresults'
570
559
} ) ;
571
560
}
561
+ if ( tReq2 !== null ) {
562
+ dispatchTableSearch ( tReq2 , { removable : true , tbl_group : LC . PERIODOGRAM_GROUP } ) ;
563
+ const xyPlotParams = {
564
+ x : { columnOrExpr : LC . PEAK_CNAME , options : 'grid' } ,
565
+ y : { columnOrExpr : LC . POWER_CNAME , options : 'grid' } ,
566
+ plotStyle : 'linepoints'
567
+
568
+ } ;
569
+ loadXYPlot ( { chartId : LC . PEAK_TABLE , tblId : LC . PEAK_TABLE , xyPlotParams, help_id : 'findpTSV.pgramresults' } ) ;
570
+ }
572
571
573
572
dispatchActiveTableChanged ( LC . PERIODOGRAM_TABLE , LC . PERIODOGRAM_GROUP ) ;
574
573
if ( hideDropDown && popupId && isDialogVisible ( popupId ) ) {
0 commit comments