Fix regression in Quickstart workflow. (#1732)

This commit is contained in:
jawelton74 2024-01-30 16:31:46 -08:00 committed by GitHub
parent dbb0324a64
commit cd3eb5b5b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,7 +68,9 @@ export const useDatabases: UseStore<DatabasesState> = create((set, get) => ({
return true; return true;
}, },
findDatabaseWithId: (databaseId: string, isSampleDatabase?: boolean) => { findDatabaseWithId: (databaseId: string, isSampleDatabase?: boolean) => {
return get().databases.find((db) => databaseId === db.id() && db.isSampleDB === isSampleDatabase); return isSampleDatabase === undefined
? get().databases.find((db) => databaseId === db.id())
: get().databases.find((db) => databaseId === db.id() && db.isSampleDB === isSampleDatabase);
}, },
isLastNonEmptyDatabase: () => { isLastNonEmptyDatabase: () => {
const databases = get().databases; const databases = get().databases;