mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-01 01:32:16 +00:00
fix: update form reset conditions in environment and compose file editors
- Modified the reset logic in ShowEnvironment to only reset when there are no changes. - Adjusted the reset condition in ComposeFileEditor to check if composeFile is empty before resetting. - Cleaned up the query in the compose service page by removing unnecessary refetchInterval.
This commit is contained in:
@@ -49,7 +49,7 @@ export const ShowEnvironment = ({ applicationId }: Props) => {
|
||||
currentBuildArgs !== (data?.buildArgs || "");
|
||||
|
||||
useEffect(() => {
|
||||
if (data) {
|
||||
if (data && !hasChanges) {
|
||||
form.reset({
|
||||
env: data.env || "",
|
||||
buildArgs: data.buildArgs || "",
|
||||
|
||||
Reference in New Issue
Block a user