Skip to content

Commit 8735ebc

Browse files
committed
1 parent 71630dd commit 8735ebc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/vs/workbench/contrib/notebook/common/model/notebookTextModel.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,15 @@ export class NotebookTextModel extends Disposable implements INotebookTextModel
559559
}
560560

561561
private _customMetadataEqual(a: any, b: any) {
562+
if (!a && !b) {
563+
// both of them are nullish or undefined
564+
return true;
565+
}
566+
567+
if (!a || !b) {
568+
return false;
569+
}
570+
562571
const aProps = Object.getOwnPropertyNames(a);
563572
const bProps = Object.getOwnPropertyNames(b);
564573

0 commit comments

Comments
 (0)