0
0
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:
Eric Duong 2021-10-15 03:10:30 -04:00 committed by GitHub
parent 35efae5615
commit 2fbe638f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
})