storybook: Fix crash in Kitchen Sink and Auto Height Editor stories (#10904)

Michael Angerman created

The *Kitchen Sink* as well as the *Auto Height Editor* story is crashing
for the same reason that the Picker story was crashing...

### Related Topics

- Picker Story PR : #10793 
- Picker Story Issue : #10739 
- Introduced By : #10620 

Release Notes:

- N/A

Change summary

crates/storybook/src/stories/picker.rs | 2 --
crates/storybook/src/storybook.rs      | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)

Detailed changes

crates/storybook/src/stories/picker.rs 🔗

@@ -1,7 +1,6 @@
 use fuzzy::StringMatchCandidate;
 use gpui::{div, prelude::*, KeyBinding, Render, SharedString, Styled, Task, View, WindowContext};
 use picker::{Picker, PickerDelegate};
-use project::Project;
 use std::sync::Arc;
 use ui::{prelude::*, ListItemSpacing};
 use ui::{Label, ListItem};
@@ -191,7 +190,6 @@ impl PickerStory {
                     ]);
                     delegate.update_matches("".into(), cx).detach();
 
-                    Project::init_settings(cx);
                     let picker = Picker::uniform_list(delegate, cx);
                     picker.focus(cx);
                     picker

crates/storybook/src/storybook.rs 🔗

@@ -10,6 +10,7 @@ use gpui::{
     div, px, size, AnyView, AppContext, Bounds, Render, ViewContext, VisualContext, WindowOptions,
 };
 use log::LevelFilter;
+use project::Project;
 use settings::{default_settings, KeymapFile, Settings, SettingsStore};
 use simplelog::SimpleLogger;
 use strum::IntoEnumIterator;
@@ -80,6 +81,7 @@ fn main() {
 
         language::init(cx);
         editor::init(cx);
+        Project::init_settings(cx);
         init(cx);
         load_storybook_keymap(cx);
         cx.set_menus(app_menus());