diff --git a/superset/assets/src/chart/chartAction.js b/superset/assets/src/chart/chartAction.js index 734459f74a93f..efed364a8b6d3 100644 --- a/superset/assets/src/chart/chartAction.js +++ b/superset/assets/src/chart/chartAction.js @@ -251,7 +251,7 @@ export function exploreJSON(formData, force = false, timeout = 60, key, method) const requestUrl = new URL(request.url || request); const urlFormData = requestUrl.searchParams.get('form_data'); // clear all cached responses that reference this chart - if (formData && JSON.parse(urlFormData).slice_id === key) { + if (urlFormData && JSON.parse(urlFormData).slice_id === key) { supersetCache.delete(request); } });