mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix cannot leave preferences
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
63fd8101f2
commit
477aecd0e4
4 files changed
+10
-6
No files matched your search
@@ -19,7 +19,7 @@ export interface RegisteredAppPreference extends AppPreferenceRegistration {
|
||||
export class AppPreferenceRegistry extends BaseRegistry<AppPreferenceRegistration, RegisteredAppPreference> {
|
||||
getRegisteredItem(item: AppPreferenceRegistration): RegisteredAppPreference {
|
||||
return {
|
||||
id: item.id || item.title.toLowerCase().replaceAll(/[^0-9a-zA-Z]+/, "-"),
|
||||
id: item.id || item.title.toLowerCase().replace(/[^0-9a-zA-Z]+/g, "-"),
|
||||
...item,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user