Skip to content

Commit 6cc1f1d

Browse files
committed
DM-7970: fixed bug found in review
1 parent 3bbe3b2 commit 6cc1f1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/firefly/js/templates/lightcurve/LcManager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export function setupImages(tbl_id) {
209209
const tableModel = getTblById(tbl_id);
210210
if (!tableModel || isNil(tableModel.highlightedRow)) return;
211211
var vr= visRoot();
212+
const hasPlots= vr.plotViewAry.length>0;
212213
const newPlotIdAry= makePlotIds(tableModel.highlightedRow, tableModel.totalRows,count);
213214
const maxPlotIdAry= makePlotIds(tableModel.highlightedRow, tableModel.totalRows,MAX_IMAGE_CNT);
214215

@@ -232,7 +233,7 @@ export function setupImages(tbl_id) {
232233

233234

234235
vr= visRoot();
235-
if (!vr.wcsMatchType) {
236+
if (!vr.wcsMatchType && !hasPlots) {
236237
dispatchWcsMatch({matchType:WcsMatchType.Target, plotId:newActivePlotId});
237238
}
238239

0 commit comments

Comments
 (0)