diff --git a/frontend/src/scenes/data-warehouse/external/dataWarehouseSceneLogic.ts b/frontend/src/scenes/data-warehouse/external/dataWarehouseSceneLogic.ts index 551ce197e46b7..fae3e0e4d1028 100644 --- a/frontend/src/scenes/data-warehouse/external/dataWarehouseSceneLogic.ts +++ b/frontend/src/scenes/data-warehouse/external/dataWarehouseSceneLogic.ts @@ -176,9 +176,9 @@ export const dataWarehouseSceneLogic = kea([ 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 }) => {