mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 12:21:02 +01:00
Dashboard item: Only pass object id when deleting dashboard item (#6447)
* only pass object id * add loadresults * add tests that validate loadResults exists on insight logics for dashboard item refresh * add name to payload * remove refresh fix
This commit is contained in:
parent
35efae5615
commit
2fbe638f40
@ -565,7 +565,10 @@ export function DashboardItem({
|
||||
data-attr={'dashboard-item-' + index + '-dropdown-delete'}
|
||||
onClick={() =>
|
||||
deleteWithUndo({
|
||||
object: item,
|
||||
object: {
|
||||
id: item.id,
|
||||
name: item.name,
|
||||
},
|
||||
endpoint: 'insight',
|
||||
callback: loadDashboardItems,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user