feat(native-filters): Set default scope by filters' and charts' datasets (#15302)

* feat(native-filters): Set default scope by filter's and charts datasets

* Fix undefined error

* Use JSON.stringify in dependency array

* Fix lint issue

* Lock scope after switching radio buttons

* Fix weird eslint issue

* Change prop names

* Implement useComponentDidUpdate

* Fix lint

* Refactor useComponentDidUpdate

* Remove screen.debug()
This commit is contained in:
Kamil Gabryjelski
2021-06-24 09:23:35 +02:00
committed by GitHub
parent 352656a398
commit f0b64190b5
13 changed files with 291 additions and 53 deletions

View File

@@ -48,6 +48,7 @@ describe('getFormDataWithExtraFilters', () => {
val: ['United States'],
},
],
datasource: '123',
},
};
const mockArgs: GetFormDataWithExtraFiltersArguments = {