Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FIX (databases): Do not reload DB id after databases reload

Rostislav Dugin8929ab3f36e8
diff --git a/frontend/src/features/databases/ui/DatabasesComponent.tsx b/frontend/src/features/databases/ui/DatabasesComponent.tsx
index 284ba11e..f8b20214 100644
--- a/frontend/src/features/databases/ui/DatabasesComponent.tsx
+++ b/frontend/src/features/databases/ui/DatabasesComponent.tsx
@@ -26,7 +26,7 @@ export const DatabasesComponent = ({ contentHeight }: Props) => {
.getDatabases()
.then((databases) => {
setDatabases(databases);
- if (!selectedDatabaseId) {
+ if (!selectedDatabaseId && !isSilent) {
setSelectedDatabaseId(databases[0]?.id);
}
})