@@ -211,7 +211,7 @@ const Alerts = () => {
211
211
object_id : objectId ,
212
212
} ) ;
213
213
} else if ( ra && dec ) {
214
- if ( ! [ "arcsec" , "arcmin" , "deg" , "ra " ] . includes ( radius_unit ) ) {
214
+ if ( ! [ "arcsec" , "arcmin" , "deg" , "rad " ] . includes ( radius_unit ) ) {
215
215
radius_unit = "arcsec" ;
216
216
}
217
217
if ( Number . isNaN ( radius ) ) {
@@ -263,16 +263,6 @@ const Alerts = () => {
263
263
rows = alerts . map ( ( a ) => makeRow ( a ) ) ;
264
264
}
265
265
266
- // DEBUG: we only have 1 alert in the testing instance, so we duplicate the row to have 20 alerts
267
- if ( rows . length > 0 ) {
268
- rows = Array ( 20 ) . fill ( rows [ 0 ] ) ;
269
- rows = rows . map ( ( row , i ) => {
270
- const newRow = { ...row } ;
271
- newRow . jd = row . jd + i ;
272
- return newRow ;
273
- } ) ;
274
- }
275
-
276
266
if ( groupByObj === true && rows . length > 0 ) {
277
267
// first find the unique objectIds
278
268
const uniqueObjectIds = Array . from (
@@ -293,18 +283,8 @@ const Alerts = () => {
293
283
const separation = greatCircleDistance ( ra , dec , row . ra , row . dec ) ;
294
284
return { ...row , separation } ;
295
285
} ) ;
296
-
297
- // // DEBUG: clone the rows to have 3 alerts, and increase the separation by 1 arcsec
298
- // rows = Array(3).fill(rows[0]);
299
- // rows = rows.map((row, i) => {
300
- // const newRow = { ...row };
301
- // newRow.separation = row.separation + i;
302
- // return newRow;
303
- // });
304
286
}
305
287
306
- console . log ( rows ) ;
307
-
308
288
const handleSaveDialogClose = ( ) => {
309
289
if ( ! saving ) {
310
290
setRowsToSave ( [ ] ) ;
0 commit comments