pass table to webhook generator

This commit is contained in:
shamsmosowi
2021-12-14 16:53:33 +07:00
parent dec4633084
commit 1ef10ddfe7

View File

@@ -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={