Skip to content

Commit

Permalink
fix & cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Jul 26, 2024
1 parent 8dd502e commit 7ce59be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/scenes/insights/insightLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ export const insightLogic = kea<insightLogicType>([
return updatedInsight
},
setInsightMetadata: async ({ metadataUpdate }, breakpoint) => {
console.debug('setInsightMetadata')
const editMode =
insightSceneLogic.isMounted() &&
insightSceneLogic.values.queryBasedInsight === values.queryBasedInsight &&
Expand All @@ -166,7 +165,6 @@ export const insightLogic = kea<insightLogicType>([
readAsQuery: false,
})
breakpoint()
console.debug('response', response)

savedInsightsLogic.findMounted()?.actions.loadInsights()
dashboardsModel.actions.updateDashboardInsight(response)
Expand Down Expand Up @@ -220,7 +218,7 @@ export const insightLogic = kea<insightLogicType>([
query: clearInsightQuery ? undefined : state.query,
}
},
setInsightMetadata: (state, { metadata }) => ({ ...state, ...metadata }),
setInsightMetadata: (state, { metadataUpdate }) => ({ ...state, ...metadataUpdate }),
[dashboardsModel.actionTypes.updateDashboardInsight]: (state, { item, extraDashboardIds }) => {
const targetDashboards = (item?.dashboards || []).concat(extraDashboardIds || [])
const updateIsForThisDashboard =
Expand Down

0 comments on commit 7ce59be

Please sign in to comment.