Skip to content

Commit

Permalink
Firefly-1604: fixed crash
Browse files Browse the repository at this point in the history
  • Loading branch information
robyww committed Nov 5, 2024
1 parent 2638a93 commit 9ecdd0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/firefly/js/drawingLayers/hpx/TileDataMaker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function createTileDataMaker() {

const {centerWp, fov} = getPointMaxSide(plot, plot.viewDim);
const coverageTblIds = hasCoverageTables(centerWp, fov, isHiPSAitoff(plot));
if (!coverageTblIds.includes(tbl_id)) return []; // this should force a clear for this layer
if (!centerWp || !coverageTblIds.includes(tbl_id)) return []; // this should force a clear for this layer
const cells = getAllVisibleHiPSCells(norder, centerWp, fov*1.3, CoordSys.EQ_J2000, isHiPSAitoff(plot));
const tblIdx = coverageTblIds.indexOf(tbl_id);
const cc = CysConverter.make(plot);
Expand Down
2 changes: 1 addition & 1 deletion src/firefly/js/visualize/ui/VisualSearchUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export function updatePlotOverlayFromUserInput(plotId, whichOverlay, wp, radius,
const dl = getDrawLayerByType(getDlAry(), SearchSelectTool.TYPE_ID);
if (!dl) return;
const isCone = whichOverlay === CONE_CHOICE_KEY;
const plot= primePlot(visRoot());
const plot= primePlot(visRoot(),plotId);

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

0 comments on commit 9ecdd0e

Please # to comment.