From 9c19728795958bc030039c88387fb90b1d372bf0 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Wed, 11 Dec 2024 20:54:14 +0200 Subject: [PATCH] shell: Fix bugs found by TypeScript The cockpit.spawn function takes only two arguments (unlike cockpit.script). Location.reload() doesn't take any arguments, the "force_reload" argument is a Firefox extension. There is no "this.onSelect" in CockpitNav. --- pkg/shell/nav.tsx | 2 +- pkg/shell/shell-modals.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/shell/nav.tsx b/pkg/shell/nav.tsx index 571e1fdf9ad3..2e102d21d39d 100644 --- a/pkg/shell/nav.tsx +++ b/pkg/shell/nav.tsx @@ -197,7 +197,7 @@ export class CockpitNav extends React.Component { return ( <> this.setState({ search })} onClear={() => this.setState({ search: "" })} className="search" /> -