mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
style: format with biome
This commit is contained in:
@@ -78,11 +78,17 @@ export const UpdateServer = () => {
|
|||||||
await checkAndUpdateImage()
|
await checkAndUpdateImage()
|
||||||
.then(async (updateAvailable) => {
|
.then(async (updateAvailable) => {
|
||||||
setIsUpdateAvailable(updateAvailable);
|
setIsUpdateAvailable(updateAvailable);
|
||||||
toast.info(updateAvailable ? "Update is available" : "No updates available");
|
toast.info(
|
||||||
|
updateAvailable
|
||||||
|
? "Update is available"
|
||||||
|
: "No updates available",
|
||||||
|
);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
setIsUpdateAvailable(false);
|
setIsUpdateAvailable(false);
|
||||||
toast.error("An error occurred while checking for updates, please try again.");
|
toast.error(
|
||||||
|
"An error occurred while checking for updates, please try again.",
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
|
|||||||
Reference in New Issue
Block a user