Skip to content

Commit

Permalink
πŸ› Fix generator form
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinbreiz committed Mar 21, 2024
1 parent 1b0cec6 commit 973d34b
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/components/dashboard/Others.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ const Others = () => {

const handleReconfig = async (e) => {
setIsReconfiguring(true);
const numServices = dummyPcIPAddresses ? dummyPcIPAddresses.split(',').filter(Boolean).length : 0;
const configData = {
dummy_pc: {
num_services: dummyPcNumServices,
num_services: numServices,
ip_addresses: dummyPcIPAddresses.split(',').map(ip => ip.trim()),
},
ftp: {
Expand Down Expand Up @@ -128,16 +129,6 @@ const Others = () => {
<Grid item xs={12}>
<Typography variant="h6" mb={2}>{t('configGenerator.services')}</Typography>
<Grid container spacing={2} direction="column" alignItems="stretch">
<Grid item>
<TextField
type="number"
variant="outlined"
label={t('configGenerator.numberOfDummyPCLabel')}
value={dummyPcNumServices}
fullWidth
sx={getTextFieldStyles(isNightMode)}
/>
</Grid>
<Grid item>
<TextField
type="text"
Expand Down

0 comments on commit 973d34b

Please sign in to comment.