Skip to content

Commit

Permalink
Fix missing dashboardId (#17380)
Browse files Browse the repository at this point in the history
  • Loading branch information
geido authored Nov 11, 2021
1 parent 28944f5 commit 7cdd58b
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,19 @@ function ExploreViewContainer(props) {

const addHistory = useCallback(
({ isReplace = false, title } = {}) => {
const payload = { ...props.form_data };
const formData = props.dashboardId
? {
...props.form_data,
dashboardId: props.dashboardId,
}
: props.form_data;
const payload = { ...formData };
const longUrl = getExploreLongUrl(
props.form_data,
formData,
props.standalone ? URL_PARAMS.standalone.name : null,
false,
);

try {
if (isReplace) {
window.history.replaceState(payload, title, longUrl);
Expand Down

0 comments on commit 7cdd58b

Please sign in to comment.