From 3d977a8fecce8486828593c9d91164879c2c0263 Mon Sep 17 00:00:00 2001 From: David Brochart Date: Wed, 9 Oct 2024 22:51:07 +0200 Subject: [PATCH] Fix model format --- packages/docprovider/src/ydrive.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/docprovider/src/ydrive.ts b/packages/docprovider/src/ydrive.ts index a501d9fa..f1d44995 100644 --- a/packages/docprovider/src/ydrive.ts +++ b/packages/docprovider/src/ydrive.ts @@ -108,7 +108,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 }; } }