Skip to content

Commit

Permalink
fix: apply patch before posting (#1337)
Browse files Browse the repository at this point in the history
this means we may change the mode from Vega-Lite to Vega if there is a patch
  • Loading branch information
domoritz authored Jul 3, 2024
1 parent 3d1e921 commit 2397535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,9 @@ async function _embed(
editorLink.addEventListener('click', function (this, e) {
post(window, editorUrl, {
config: config as Config,
mode,
mode: patch ? 'vega' : mode,
renderer,
spec: stringify(spec),
spec: stringify(patch ? vgSpec : spec),
});
e.preventDefault();
});
Expand Down

0 comments on commit 2397535

Please sign in to comment.