feat: Pass dashboard context to explore through local storage (#20743)

* feat: Pass dashboard context to explore through local storage

* Remove console log

* Remove unused local storage keys

* Fix lint

* Fix link

* Fix UT

* fix lint

* fix prettier

* Fix bug

* Fix bug with some sample dashboards

* Roll back unnecessary change

* style fix

* Add comments

* Fix lint

* Address code review comments

* Fix
This commit is contained in:
Kamil Gabryjelski
2022-07-25 16:44:43 +02:00
committed by GitHub
parent 644148b37d
commit 0945d4a2f4
31 changed files with 850 additions and 247 deletions

View File

@@ -212,7 +212,7 @@ class SaveModal extends React.Component<SaveModalProps, SaveModalState> {
return;
}
const searchParams = new URLSearchParams(this.props.location.search);
const searchParams = new URLSearchParams(window.location.search);
searchParams.set('save_action', this.state.action);
searchParams.delete('form_data_key');
if (this.state.action === 'saveas') {