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)(); }