mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
47d78fa0fb
Extends the fix from #3064 to the remaining 20 settings update components for both functions and sites. Two bugs were present in every file not touched by that PR: 1. `enabled`, `logging`, and `providerSilentMode` were passed through `|| undefined` instead of `?? undefined`, causing `false` values to be silently coerced to `undefined` and reset to their API defaults whenever any other setting was saved. 2. `deploymentRetention` was absent from every partial-update payload, so saving name, timeout, scopes, schedule, runtime, permissions, resource limits, build command, events, build triggers, or repository settings would silently reset the retention value. Also fixes `providerSilentMode: silentMode || undefined` in sites/ updateRepository.svelte to `silentMode` (matching the functions version), so disabling silent mode is correctly preserved on save.