fix(explore): only refresh data panel on relevant changes (#16699)

* fix(explore): only refresh data panel on relevant changes

* add comment and supress warning
This commit is contained in:
Ville Brofeldt
2021-09-14 15:58:05 +03:00
committed by GitHub
parent 5ac8ac0e6c
commit c99cacbdd2
2 changed files with 19 additions and 2 deletions

View File

@@ -221,7 +221,7 @@ export const DataTablesPane = ({
...prevState,
[RESULT_TYPES.samples]: true,
}));
}, [queryFormData.adhoc_filters, queryFormData.datasource]);
}, [queryFormData?.adhoc_filters, queryFormData?.datasource]);
useEffect(() => {
if (queriesResponse && chartStatus === 'success') {