fix conflict demo

This commit is contained in:
Michael Lively 2022-08-24 10:37:37 -07:00
parent 02cb45c3cb
commit 614c7dd5f4

View file

@ -124,7 +124,7 @@ function encodeBase64(buffer: Uint8Array, padded = true, urlSafe = false) {
}
function buildMetadata(b64: string, cell: vscode.NotebookCell, filename: string, filetype: string, startingAttachments: any): { [key: string]: any } {
const outputMetadata = {};
const outputMetadata = { ...cell.metadata };
if (!outputMetadata.custom) {
outputMetadata['custom'] = { 'attachments': { [filename]: { 'image/png': b64 } } };