Skip to content

Commit 9ecdd0e

Browse files
committed
Firefly-1604: fixed crash
1 parent 2638a93 commit 9ecdd0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/firefly/js/drawingLayers/hpx/TileDataMaker.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function createTileDataMaker() {
6969

7070
const {centerWp, fov} = getPointMaxSide(plot, plot.viewDim);
7171
const coverageTblIds = hasCoverageTables(centerWp, fov, isHiPSAitoff(plot));
72-
if (!coverageTblIds.includes(tbl_id)) return []; // this should force a clear for this layer
72+
if (!centerWp || !coverageTblIds.includes(tbl_id)) return []; // this should force a clear for this layer
7373
const cells = getAllVisibleHiPSCells(norder, centerWp, fov*1.3, CoordSys.EQ_J2000, isHiPSAitoff(plot));
7474
const tblIdx = coverageTblIds.indexOf(tbl_id);
7575
const cc = CysConverter.make(plot);

src/firefly/js/visualize/ui/VisualSearchUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ export function updatePlotOverlayFromUserInput(plotId, whichOverlay, wp, radius,
323323
const dl = getDrawLayerByType(getDlAry(), SearchSelectTool.TYPE_ID);
324324
if (!dl) return;
325325
const isCone = whichOverlay === CONE_CHOICE_KEY;
326-
const plot= primePlot(visRoot());
326+
const plot= primePlot(visRoot(),plotId);
327327

328328
dispatchChangeDrawingDef(dl.drawLayerId,{...dl.drawingDef,color:'yellow'},plotId);
329329
dispatchModifyCustomField(dl.drawLayerId,{isInteractive: true},plotId);

0 commit comments

Comments
 (0)