Skip to content

Commit b3e189e

Browse files
Call get with options of type IFetchOptions (#238)
1 parent 6bb0298 commit b3e189e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/docprovider/src/ydrive.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ export class YDrive extends Drive implements ICollaborativeDrive {
114114

115115
if (provider) {
116116
// Save is done from the backend
117-
return this.get(localPath, { ...options, content: false });
117+
const fetchOptions: Contents.IFetchOptions = {
118+
type: options.type,
119+
format: options.format,
120+
content: false
121+
};
122+
return this.get(localPath, fetchOptions);
118123
}
119124
}
120125

0 commit comments

Comments
 (0)