Skip to content

Commit

Permalink
Fix prefix name for blockpool names
Browse files Browse the repository at this point in the history
Signed-off-by: vbadrina <[email protected]>
  • Loading branch information
vbnrh committed Jan 22, 2025
1 parent a788f9a commit 9c807c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ocs/storage-pool/body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ export const StoragePoolBody: React.FC<StoragePoolBodyProps> = ({
.test(
'unique-name',
translationFieldRequirements[3],
(value: string) => !existingNames.includes(value)
(value: string) =>
!existingNames.includes(
usePrefix ? `${prefixName}-${value}` : value
)
),
});

Expand Down

0 comments on commit 9c807c6

Please sign in to comment.