Skip to content

Commit

Permalink
fix(data-warehouse): Fixed the toast message for updated views (#21753)
Browse files Browse the repository at this point in the history
Fixed the toast message for updated views
  • Loading branch information
Gilbert09 authored Apr 25, 2024
1 parent 2f6081f commit f96ec7d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ export const dataWarehouseSceneLogic = kea<dataWarehouseSceneLogicType>([
selectRow: () => {
actions.setIsEditingSavedQuery(false)
},
updateDataWarehouseSavedQuerySuccess: async (_, view) => {
updateDataWarehouseSavedQuerySuccess: async ({ payload }) => {
actions.setIsEditingSavedQuery(false)
lemonToast.success(`${view.name} successfully updated`)
lemonToast.success(`${payload?.name ?? 'View'} successfully updated`)
},
})),
afterMount(({ actions, values }) => {
Expand Down

0 comments on commit f96ec7d

Please sign in to comment.