fix(cloud): show provider root items in browser
This commit is contained in:
@@ -127,9 +127,12 @@ async function load() {
|
||||
error.value = ''
|
||||
cloudStore.setBrowseState({ freshness: 'refreshing' })
|
||||
try {
|
||||
// "root" is a route-only sentinel. The browse API represents the
|
||||
// connection root by omitting parent_ref (the empty string here).
|
||||
const parentRef = folderId.value && folderId.value !== 'root' ? folderId.value : ''
|
||||
const data = await api.getCloudFoldersByConnectionId(
|
||||
connectionId.value,
|
||||
folderId.value ?? 'root'
|
||||
parentRef
|
||||
)
|
||||
items.value = data.items ?? []
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user