diff options
Diffstat (limited to 'packages/main/src/stores/config/loadConfig.ts')
-rw-r--r-- | packages/main/src/stores/config/loadConfig.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/main/src/stores/config/loadConfig.ts b/packages/main/src/stores/config/loadConfig.ts index 8a1adcb..a44e580 100644 --- a/packages/main/src/stores/config/loadConfig.ts +++ b/packages/main/src/stores/config/loadConfig.ts | |||
@@ -40,7 +40,7 @@ import type ProfileConfig from './ProfileConfig.js'; | |||
40 | import type ServiceConfig from './ServiceConfig.js'; | 40 | import type ServiceConfig from './ServiceConfig.js'; |
41 | 41 | ||
42 | function generateId(name?: string | undefined): string { | 42 | function generateId(name?: string | undefined): string { |
43 | const nameSlug = typeof name === 'undefined' ? '' : slug(name); | 43 | const nameSlug = name === undefined ? '' : slug(name); |
44 | return `${nameSlug}_${nanoid()}`; | 44 | return `${nameSlug}_${nanoid()}`; |
45 | } | 45 | } |
46 | 46 | ||