We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5865df3 + 888fd83 commit 0043f98Copy full SHA for 0043f98
extensions/ipynb/src/notebookAttachmentCleaner.ts
@@ -187,7 +187,7 @@ export class AttachmentCleaner implements vscode.CodeActionProvider {
187
}
188
189
190
- if (!objectEquals(markdownAttachmentsInUse, cell.metadata.attachments)) {
+ if (cell.index > -1 && !objectEquals(markdownAttachmentsInUse, cell.metadata.attachments)) {
191
const updateMetadata: { [key: string]: any } = deepClone(cell.metadata);
192
updateMetadata.attachments = markdownAttachmentsInUse;
193
const metadataEdit = vscode.NotebookEdit.updateCellMetadata(cell.index, updateMetadata);
0 commit comments