Skip to content

Commit

Permalink
Backport 'Fix model format' #368 (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart authored Oct 11, 2024
1 parent b96d187 commit 8c7ecf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/docprovider/src/ydrive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ export class YDrive extends Drive implements ICollaborativeDrive {
super.get(localPath, { ...options, content: false }),
provider.ready
]);
return model;
// The server doesn't return a model with a format when content is false,
// so set it back.
return { ...model, format: options.format };
}
}

Expand Down

0 comments on commit 8c7ecf6

Please sign in to comment.