diff --git a/src/app.tsx b/src/app.tsx index 693dd517..0d3b12fd 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -32,7 +32,7 @@ export const Application = () => { const hostname = cockpit.file('/etc/hostname'); hostname.watch(content => setHostname(content?.trim() ?? "")); return hostname.close; - }); + }, []); return (