Skip to content

Commit

Permalink
ISPN-16206 Allow spaces on cache name
Browse files Browse the repository at this point in the history
  • Loading branch information
karesti committed Jul 2, 2024
1 parent 9753ea9 commit a8aefc2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/Caches/Create/CreateCacheGettingStarted.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ const CreateCacheGettingStarted = (props: { create: boolean }) => {
const id = props.create ? 'create' : 'setup';

const handleChangeName = (name) => {
const trimmedName = name.trim();

// Check if name is not null or empty
if (trimmedName.length > 0) {
if (name.length > 0) {
setValidName('default');
} else {
setValidName('error');
}
setCacheName(trimmedName);
setCacheName(name);
};

useEffect(() => {
Expand Down

0 comments on commit a8aefc2

Please sign in to comment.