mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
pass table to webhook generator
This commit is contained in:
@@ -20,7 +20,7 @@ import { useSnackbar } from "notistack";
|
||||
import { modalAtom } from "@src/atoms/Table";
|
||||
|
||||
export default function Webhooks() {
|
||||
const { tableState, tableActions, rowyRun, compatibleRowyRunVersion } =
|
||||
const { tableState, table, tableActions, rowyRun, compatibleRowyRunVersion } =
|
||||
useProjectContext();
|
||||
const appContext = useAppContext();
|
||||
const { requestConfirmation } = useConfirmation();
|
||||
@@ -189,7 +189,11 @@ export default function Webhooks() {
|
||||
handleAddWebhook={(type: WebhookType) => {
|
||||
setWebhookModal({
|
||||
mode: "add",
|
||||
webhookObject: emptyWebhookObject(type, currentEditor()),
|
||||
webhookObject: emptyWebhookObject(
|
||||
type,
|
||||
currentEditor(),
|
||||
table
|
||||
),
|
||||
});
|
||||
}}
|
||||
variant={
|
||||
|
||||
Reference in New Issue
Block a user