Skip to content

Commit

Permalink
Fix breadcrumbs (#4986)
Browse files Browse the repository at this point in the history
ProviderView.tsx - fix onedrive breadcrumbs
  • Loading branch information
lakesare authored Mar 12, 2024
1 parent 536d614 commit 1c1062a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@uppy/core/src/Uppy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export type UnknownPlugin<
export type UnknownProviderPluginState = {
authenticated: boolean | undefined
breadcrumbs: {
requestPath: string
requestPath?: string
name?: string
id?: string
}[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export default class ProviderView<M extends Meta, B extends Body> extends View<
if (index !== -1) {
// means we navigated back to a known directory (already in the stack), so cut the stack off there
breadcrumbs = breadcrumbs.slice(0, index + 1)
} else if (requestPath) {
} else {
// we have navigated into a new (unknown) folder, add it to the stack
breadcrumbs = [...breadcrumbs, { requestPath, name }]
}
Expand Down

0 comments on commit 1c1062a

Please sign in to comment.