Skip to content

Commit a0d8ac1

Browse files
authored
DM-10379,DM-9824: Merge PR #372 from dm-10379-global-cov-bug
DM-10379: fixed: After a catalog search with a globe coverage map, the catalog search doesn't work anymore. Also Fixes DM-9824
2 parents d70c294 + 523fff4 commit a0d8ac1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/firefly/js/ui/CatalogSearchMethodType.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ function calcCornerString(pv, method) {
176176
pt2 = makeWorldPt( pt3.x, pt1.y, pt1.cSys );
177177
pt4 = makeWorldPt( pt1.x, pt3.y, pt1.cSys );
178178
}
179-
return `${f5(pt1.x)} ${f5(pt1.y)}, ${f5(pt2.x)} ${f5(pt2.y)}, ${f5(pt3.x)} ${f5(pt3.y)}, ${f5(pt4.x)} ${f5(pt4.y)}`;
179+
return (pt1 && pt2 && pt3 && pt4) ?
180+
`${f5(pt1.x)} ${f5(pt1.y)}, ${f5(pt2.x)} ${f5(pt2.y)}, ${f5(pt3.x)} ${f5(pt3.y)}, ${f5(pt4.x)} ${f5(pt4.y)}` :
181+
'';
180182
}
181183

182184

0 commit comments

Comments
 (0)