Skip to content

Commit 2df3f5d

Browse files
committed
Set sideEditor value on compact/flatten.
1 parent b16b510 commit 2df3f5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

playground/next/editor.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ window.app = createApp({
452452
'@context': this.doc['@context']
453453
};
454454
this.contextDoc = context;
455+
setEditorValue(this.sideEditor, this.contextDoc);
455456
}
456457
try {
457458
const compacted = await jsonld.compact(this.doc, {'@context': context['@context'] || {}}, this.options);
@@ -468,6 +469,7 @@ window.app = createApp({
468469
'@context': this.doc['@context']
469470
};
470471
this.contextDoc = context;
472+
setEditorValue(this.sideEditor, this.contextDoc);
471473
}
472474
try {
473475
const flattened = await jsonld.flatten(this.doc, {'@context': context['@context'] || {}}, this.options);

0 commit comments

Comments
 (0)