Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into bug/auto-save-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JensvandeWiel authored Nov 18, 2023
2 parents 59df23c + 933d09a commit 6b4c0bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions frontend/src/pages/server/Administration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ function ServerStartupCard({setServ, serv}: {setServ: React.Dispatch<React.SetSt
}

function AutoSaveSettingsCard({ setServ, serv }: {setServ: React.Dispatch<React.SetStateAction<server.Server>>, serv: server.Server}) {

const {addAlert} = useAlert();

const handleAutoSaveIntervalChange = (e: React.ChangeEvent<HTMLInputElement>) => {
Expand All @@ -230,7 +229,6 @@ function AutoSaveSettingsCard({ setServ, serv }: {setServ: React.Dispatch<React.
addAlert("'Auto-Save Interval' must be greater than 0", "danger")
}
};

return (
<Card variant="soft" className={''}>
<Typography level="title-md">
Expand Down
1 change: 0 additions & 1 deletion server/server_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ func (c *ServerController) AutoSaveServers() {
runtime.LogError(c.ctx, "Server auto-save interval set 0 or below")
continue
}

if c.autoSaveIterations%server.AutoSaveInterval == 0 {
runtime.LogInfo(c.ctx, "Running autosave for "+server.ServerName)

Expand Down

0 comments on commit 6b4c0bd

Please sign in to comment.