mirror of
https://github.com/databasus/databasus.git
synced 2026-04-06 00:32:03 +02:00
fix(storages): SFTP auth method radio button now correctly switches to Private Key #317
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @m4tt72 on 12/29/2025
Problem
When editing an SFTP storage, clicking the "Private Key" radio button did not visually select it. The selection appeared to stay on "Password" even after clicking.
Root Cause
The
authMethodvalue was derived from whetherprivateKeyhad a truthy valueSolution
Changed from a derived value to explicit React state to track the selected auth method