diff --git a/crates/command_palette/src/command_palette.rs b/crates/command_palette/src/command_palette.rs index 5e7f5938ef..50ededd122 100644 --- a/crates/command_palette/src/command_palette.rs +++ b/crates/command_palette/src/command_palette.rs @@ -317,9 +317,7 @@ impl PickerDelegate for CommandPaletteDelegate { }); let action = command.action; cx.focus(&self.previous_focus_handle); - cx.window_context() - .spawn(move |mut cx| async move { cx.update(|cx| cx.dispatch_action(action)) }) - .detach_and_log_err(cx); + cx.dispatch_action(action); self.dismissed(cx); }