Skip to content

Commit

Permalink
updated chartAction to fix annotationLayers extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
aadhikari committed Jun 26, 2023
1 parent 6a811c5 commit fefa1b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset-frontend/src/components/Chart/chartAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,9 @@ export function exploreJSON(

// only retrieve annotations when calling the legacy API
const [useLegacyApi] = getQuerySettings(formData);
const annotationLayers = useLegacyApi ? formData.annotation_layers : [];
const annotationLayers = useLegacyApi
? formData.annotation_layers || []
: [];
const isDashboardRequest = dashboardId > 0;

return Promise.all([
Expand Down

0 comments on commit fefa1b9

Please sign in to comment.