From b573ccc90ccff6b2f2bb8864bd18bfc2810329c0 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 5 Apr 2026 04:48:38 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../components/dashboard/project/environment-variables.tsx | 7 ++++++- .../components/dashboard/projects/project-environment.tsx | 7 ++++++- .../dashboard/settings/web-server/edit-traefik-env.tsx | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/apps/dokploy/components/dashboard/project/environment-variables.tsx b/apps/dokploy/components/dashboard/project/environment-variables.tsx index 5653fafdc..2826e2bcb 100644 --- a/apps/dokploy/components/dashboard/project/environment-variables.tsx +++ b/apps/dokploy/components/dashboard/project/environment-variables.tsx @@ -88,7 +88,12 @@ export const EnvironmentVariables = ({ environmentId, children }: Props) => { // Add keyboard shortcut for Ctrl+S/Cmd+S useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { - if ((e.ctrlKey || e.metaKey) && e.code === "KeyS" && !isPending && isOpen) { + if ( + (e.ctrlKey || e.metaKey) && + e.code === "KeyS" && + !isPending && + isOpen + ) { e.preventDefault(); form.handleSubmit(onSubmit)(); } diff --git a/apps/dokploy/components/dashboard/projects/project-environment.tsx b/apps/dokploy/components/dashboard/projects/project-environment.tsx index e2cb672d5..ba70bb971 100644 --- a/apps/dokploy/components/dashboard/projects/project-environment.tsx +++ b/apps/dokploy/components/dashboard/projects/project-environment.tsx @@ -87,7 +87,12 @@ export const ProjectEnvironment = ({ projectId, children }: Props) => { // Add keyboard shortcut for Ctrl+S/Cmd+S useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { - if ((e.ctrlKey || e.metaKey) && e.code === "KeyS" && !isPending && isOpen) { + if ( + (e.ctrlKey || e.metaKey) && + e.code === "KeyS" && + !isPending && + isOpen + ) { e.preventDefault(); form.handleSubmit(onSubmit)(); } diff --git a/apps/dokploy/components/dashboard/settings/web-server/edit-traefik-env.tsx b/apps/dokploy/components/dashboard/settings/web-server/edit-traefik-env.tsx index d4c3f60f5..1312b96c5 100644 --- a/apps/dokploy/components/dashboard/settings/web-server/edit-traefik-env.tsx +++ b/apps/dokploy/components/dashboard/settings/web-server/edit-traefik-env.tsx @@ -87,7 +87,12 @@ export const EditTraefikEnv = ({ children, serverId }: Props) => { // Add keyboard shortcut for Ctrl+S/Cmd+S useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { - if ((e.ctrlKey || e.metaKey) && e.code === "KeyS" && !isPending && !canEdit) { + if ( + (e.ctrlKey || e.metaKey) && + e.code === "KeyS" && + !isPending && + !canEdit + ) { e.preventDefault(); form.handleSubmit(onSubmit)(); }