Skip to content

Commit

Permalink
fix: prevent page crash when chart can't render (#16464)
Browse files Browse the repository at this point in the history
(cherry picked from commit 577ede4)
  • Loading branch information
zhaoyongjie authored and villebro committed Sep 6, 2021
1 parent ad9b0f9 commit df5951e
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 df5951e

Please sign in to comment.