- Choose a database
-
- Choose an existing database or create a new database to get started.
-
- {res.data?.databases.length ? (
-
- {res.data.databases.map(db => (
- -
-
-
- {db}
-
- Go
-
-
-
-
- ))}
-
- ) : (
-
- No databases found. Create a database to get started.
+
+ Choose a database
+
+ Choose an existing database or create a new database to get started.
- )}
-
+ {res.data?.databases.length ? (
+
+ {res.data.databases.map(db => (
+ -
+
+
+ {db}
+
+ Go
+
+
+
+
+ ))}
+
+ ) : (
+
+ No databases found. Create a database to get started.
+
+ )}
+
+
+
);
}
diff --git a/web/lib/refetchQueries.ts b/web/lib/refetchQueries.ts
index bf870558..3d9aabde 100644
--- a/web/lib/refetchQueries.ts
+++ b/web/lib/refetchQueries.ts
@@ -122,6 +122,7 @@ export const refetchSqlUpdateQueriesCacheEvict: RefetchOptions = {
"schemaDiff",
"doltProcedures",
"doltSchemas",
+ "databases",
].forEach(fieldName => {
cache.evict({ fieldName });
});