mirror of
https://github.com/apache/superset.git
synced 2026-04-27 03:55:47 +00:00
fix: Adds logging for SPA route navigation with React router (#21960)
This commit is contained in:
@@ -78,13 +78,13 @@ const loggerMiddleware = store => next => action => {
|
||||
impression_id: impressionId,
|
||||
version: 'v2',
|
||||
};
|
||||
if (dashboardInfo) {
|
||||
if (dashboardInfo?.id) {
|
||||
logMetadata = {
|
||||
source: 'dashboard',
|
||||
source_id: dashboardInfo.id,
|
||||
...logMetadata,
|
||||
};
|
||||
} else if (explore) {
|
||||
} else if (explore?.slice) {
|
||||
logMetadata = {
|
||||
source: 'explore',
|
||||
source_id: explore.slice ? explore.slice.slice_id : 0,
|
||||
|
||||
Reference in New Issue
Block a user