fix(app): add spacing in restart handler

This commit is contained in:
Filip
2026-11-04 17:26:34 +00:00
Unverified
parent 6928334b2a
commit 73768006f8
+2
View File
@@ -319,11 +319,13 @@ export const ErrorPage: Component<ErrorPageProps> = (props) => {
async function restart() {
setStore({ restarting: true, actionError: undefined })
// A service that failed to boot stays registered, so relaunching alone would reattach to it.
const service =
errorDescriptionKey(props.error) === "error.page.description.localServerStartup"
? platform.restartService
: undefined
await (service ? service() : platform.restart()).catch((err) => {
setStore({ restarting: false, actionError: formatError(err, language.t) })
})