Skip to content

Commit

Permalink
fix: prevent page crash when chart can't render (apache#16464)
Browse files Browse the repository at this point in the history
(cherry picked from commit 577ede4)
  • Loading branch information
zhaoyongjie authored and Steven Uray committed Aug 26, 2021
1 parent f6bb1cd commit 961b9da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export const DataTablesPane = ({
}, [queryFormData.adhoc_filters, queryFormData.datasource]);

useEffect(() => {
if (queriesResponse) {
if (queriesResponse && chartStatus === 'success') {
const { colnames } = queriesResponse[0];
setColumnNames([...colnames]);
}
Expand Down

0 comments on commit 961b9da

Please sign in to comment.