mirror of
https://github.com/apache/superset.git
synced 2024-09-16 02:29:39 -04:00
fix: Add extra check to loggerMiddleware (#14492)
* Add extra check * Update superset-frontend/src/middleware/loggerMiddleware.js Co-authored-by: Evan Rusackas <evan@preset.io> * Fix linting issue Co-authored-by: Evan Rusackas <evan@preset.io>
This commit is contained in:
parent
52dbe311c7
commit
10a53b7f5d
@ -116,7 +116,7 @@ const loggerMiddleware = store => next => action => {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (eventData.target_id && dashboardLayout.present) {
|
if (eventData.target_id && dashboardLayout?.present?.[eventData.target_id]) {
|
||||||
const { meta } = dashboardLayout.present[eventData.target_id];
|
const { meta } = dashboardLayout.present[eventData.target_id];
|
||||||
// chart name or tab/header text
|
// chart name or tab/header text
|
||||||
eventData.target_name = meta.chartId ? meta.sliceName : meta.text;
|
eventData.target_name = meta.chartId ? meta.sliceName : meta.text;
|
||||||
|
Loading…
Reference in New Issue
Block a user