diff --git a/packages/netlify-cms-backend-git-gateway/src/implementation.js b/packages/netlify-cms-backend-git-gateway/src/implementation.js index 7501dd6c..808ac02c 100644 --- a/packages/netlify-cms-backend-git-gateway/src/implementation.js +++ b/packages/netlify-cms-backend-git-gateway/src/implementation.js @@ -212,7 +212,10 @@ export default class GitGateway { return Promise.all([this.backend.getMedia(), this.getLargeMediaClient()]).then( async ([mediaFiles, largeMediaClient]) => { if (!largeMediaClient.enabled) { - return mediaFiles; + return mediaFiles.map(({ displayURL, ...rest }) => ({ + ...rest, + displayURL: { original: displayURL }, + })); } const largeMediaDisplayURLs = await this.getLargeMediaDisplayURLs(mediaFiles); return mediaFiles.map(({ id, displayURL, path, ...rest }) => {