Skip to content

Commit

Permalink
Backport 'Fix model format' jupyterlab#368
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Oct 10, 2024
1 parent b96d187 commit e495645
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 e495645

Please sign in to comment.