Skip to content

Commit

Permalink
correction in the float value of radius_arcsec that should display a …
Browse files Browse the repository at this point in the history
…dot instead of a comma
  • Loading branch information
jandsonrj committed Oct 15, 2024
1 parent 960ffdb commit 147fb2b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions frontend/components/SearchRadius.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import React from 'react'
import PropTypes from 'prop-types'
import TextField from '@mui/material/TextField'
import PropTypes from 'prop-types'
import React from 'react'

function SearchRadius({ searchRadius, onChange }) {
const formattedRadius = searchRadius.toFixed(1)
const formattedRadius = searchRadius.toLocaleString('en-US', {
minimumFractionDigits: 1,
maximumFractionDigits: 1
})

const handleRadiusChange = event => {
onChange(parseFloat(event.target.value))
Expand Down
4 changes: 3 additions & 1 deletion frontend/pages/training_set_maker.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ function TrainingSetMaker() {
}

const sanitizedCatalogName = combinedCatalogName
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '')
.trim()
.replace(/[\s*,\-*]+/g, '_')
.replace(/[\s*,\-*/]+/g, '_')

try {
const pipelineId = initialData.id
Expand Down

0 comments on commit 147fb2b

Please sign in to comment.