From af0b69e8b6940a3a984aa83bb4e4e5712383e6d3 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 23 Jul 2024 12:09:53 +0200 Subject: [PATCH] Reuse --- .../automation/AutomationPanel/AutomationNavItem.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/components/automation/AutomationPanel/AutomationNavItem.svelte b/packages/builder/src/components/automation/AutomationPanel/AutomationNavItem.svelte index 25f1a3648b..df5ac3bd98 100644 --- a/packages/builder/src/components/automation/AutomationPanel/AutomationNavItem.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/AutomationNavItem.svelte @@ -6,6 +6,7 @@ contextMenuStore, } from "stores/builder" import { notifications, Icon } from "@budibase/bbui" + import { sdk } from "@budibase/shared-core" import ConfirmDialog from "components/common/ConfirmDialog.svelte" import UpdateAutomationModal from "components/automation/AutomationPanel/UpdateAutomationModal.svelte" import NavItem from "components/common/NavItem.svelte" @@ -35,7 +36,7 @@ } const getContextMenuItems = () => { - const isRowAction = automation.definition.trigger.name === "Row Action" + const isRowAction = sdk.automations.isRowAction(automation) const result = [] if (!isRowAction) { result.push(