Skip to content

Commit

Permalink
ProviderView.tsx - fix onedrive breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
lakesare committed Mar 12, 2024
1 parent 76615a1 commit b234045
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 b234045

Please sign in to comment.