Skip to content

Commit 8c7ecf6

Browse files
Backport 'Fix model format' jupyterlab#368 (jupyterlab#369)
1 parent b96d187 commit 8c7ecf6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/docprovider/src/ydrive.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ export class YDrive extends Drive implements ICollaborativeDrive {
8686
super.get(localPath, { ...options, content: false }),
8787
provider.ready
8888
]);
89-
return model;
89+
// The server doesn't return a model with a format when content is false,
90+
// so set it back.
91+
return { ...model, format: options.format };
9092
}
9193
}
9294

0 commit comments

Comments
 (0)