Skip to content

Commit

Permalink
fix: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
andy89923 committed Mar 29, 2024
1 parent 05f50bc commit e504961
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/pages/SubscriberCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1904,12 +1904,14 @@ export default function SubscriberCreate() {
variant="outlined"
fullWidth
disabled={
row.dnnConfigurations![dnn]["staticIpAddress"] == null ||
row.dnnConfigurations![dnn]["staticIpAddress"]?.length == 0
}
value={
row.dnnConfigurations![dnn]["staticIpAddress"]?.length != 0
? row.dnnConfigurations![dnn]["staticIpAddress"]![0].ipv4Addr!
: ""
row.dnnConfigurations![dnn]["staticIpAddress"] == null ||
row.dnnConfigurations![dnn]["staticIpAddress"]?.length == 0
? ""
: row.dnnConfigurations![dnn]["staticIpAddress"]![0].ipv4Addr!
}
onChange={(ev) => handleChangeStaticIp(ev, index, dnn)}
/>
Expand Down

0 comments on commit e504961

Please sign in to comment.