Skip to content

Commit

Permalink
Call get with options of type IFetchOptions (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart authored Feb 22, 2024
1 parent 6bb0298 commit b3e189e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/docprovider/src/ydrive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ export class YDrive extends Drive implements ICollaborativeDrive {

if (provider) {
// Save is done from the backend
return this.get(localPath, { ...options, content: false });
const fetchOptions: Contents.IFetchOptions = {
type: options.type,
format: options.format,
content: false
};
return this.get(localPath, fetchOptions);
}
}

Expand Down

0 comments on commit b3e189e

Please sign in to comment.