Refactor selection method to allow all types of DbItem lists

This commit is contained in:
Nora
2022-12-05 16:21:35 +01:00
parent dbba6972e1
commit 728f80189b

View File

@@ -37,7 +37,7 @@ export async function getRepositorySelection(
dbManager?: DbManager,
): Promise<RepositorySelection> {
if (isNewQueryRunExperienceEnabled()) {
const selectedDbItem = await dbManager?.selectedDbItem();
const selectedDbItem = await dbManager?.getSelectedDbItem();
if (selectedDbItem) {
switch (selectedDbItem.kind) {
case DbItemKind.LocalDatabase || DbItemKind.LocalList: