Skip to content

Commit

Permalink
fix ExtraParamsLoadedFromUrl payload
Browse files Browse the repository at this point in the history
  • Loading branch information
diegopf committed Jul 10, 2024
1 parent 21a72ad commit 1380db7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
setup: function (props, { attrs }) {
const $x = use$x();
const initialExtraParams: Dictionary<unknown> = useState('url', ['initialExtraParams']);
const initialExtraParams = useState('url', ['initialExtraParams']).initialExtraParams;
/**
* The {@link SnippetConfig} provided by an ancestor.
Expand Down Expand Up @@ -268,7 +268,7 @@
}
return params;
},
{ all: { ...initialUrlState }, extra: { ...initialExtraParams } }
{ all: { ...initialUrlState }, extra: { ...initialExtraParams.value } }
);
};
Expand Down

0 comments on commit 1380db7

Please sign in to comment.