File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/features/instance/applications/components/NewApplication Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { useInstanceClientParams } from '@/config/useInstanceClient';
66import { useEditorView } from '@/features/instance/applications/hooks/useEditorView' ;
77import { Cluster , Instance , Organization } from '@/lib/api.patch' ;
88import { findBy } from '@/lib/arrays/findBy' ;
9+ import { toKebabCase } from '@/lib/string/to-kebab-case' ;
910import { zodResolver } from '@hookform/resolvers/zod' ;
1011import { useRouteContext } from '@tanstack/react-router' ;
1112import { BoxesIcon , GitBranchIcon , TerminalIcon } from 'lucide-react' ;
@@ -30,7 +31,7 @@ export function NewApplication() {
3031 } = useRouteContext ( { strict : false } ) ;
3132
3233 const defaultApplicationName = useMemo ( ( ) => {
33- const defaultName = cluster ?. name || instance ?. name || organization ?. name || '' ;
34+ const defaultName = toKebabCase ( cluster ?. name || instance ?. name || organization ?. name || '' ) ;
3435 if ( defaultName === '' ) {
3536 return defaultName ;
3637 }
You can’t perform that action at this time.
0 commit comments