Skip to content

Commit

Permalink
feat(pci.private-network): fix ip range validation
Browse files Browse the repository at this point in the history
ref: TAPC-1860
Signed-off-by: tsiorifamonjena <[email protected]>
  • Loading branch information
Tsiorifamonjena committed Dec 6, 2024
1 parent c581689 commit 0664289
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const IpRange: FC<PropsWithChildren<IpRangeProps>> = ({
: ODS_THEME_COLOR_INTENT.primary
}
value={start}
placeholder="placeholder"
placeholder="10.0.0.1"
onOdsValueChange={onStartIpChange}
error={isStartIpHasError}
/>
Expand All @@ -65,7 +65,7 @@ const IpRange: FC<PropsWithChildren<IpRangeProps>> = ({
: ODS_THEME_COLOR_INTENT.primary
}
value={end}
placeholder="placeholder"
placeholder="10.0.0.5"
onOdsValueChange={onEndIpChange}
error={isEndIpHasError}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const AllocationPoolInputEdit: FC<PropsWithChildren<{ position: number }>> = ({
const isEndIpHasError = isTouched && !!isErrors?.end;

const onIpChange = (key: string, value: string) => {
if (value) {
if (value !== undefined && value !== null) {
const updatedPools = [...allocationPools];

updatedPools[position] = { ...updatedPools[position], [key]: value };
Expand Down

0 comments on commit 0664289

Please sign in to comment.