Skip to content

Commit 7f5e786

Browse files
FIX (databases): If some DB missing PostgreSQL db fix nil issue
1 parent 9b066bc commit 7f5e786

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

backend/internal/features/databases/model.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ func (d *Database) TestConnection(logger *slog.Logger) error {
6161
}
6262

6363
func (d *Database) HideSensitiveData() {
64-
d.getSpecificDatabase().HideSensitiveData()
64+
specificDB := d.getSpecificDatabase()
65+
if specificDB != nil {
66+
specificDB.HideSensitiveData()
67+
}
6568
}
6669

6770
func (d *Database) Update(incoming *Database) {

frontend/src/features/notifiers/ui/edit/notifiers/EditEmailNotifierComponent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export function EditEmailNotifierComponent({ notifier, setNotifier, setIsUnsaved
108108
<div className="mb-1 flex items-center">
109109
<div className="w-[130px] min-w-[130px]">SMTP password</div>
110110
<Input
111+
type="password"
111112
value={notifier?.emailNotifier?.smtpPassword || ''}
112113
onChange={(e) => {
113114
if (!notifier?.emailNotifier) return;

0 commit comments

Comments
 (0)