diff --git a/packages/editor-ui/src/views/WorkflowsView.vue b/packages/editor-ui/src/views/WorkflowsView.vue index 5d9b38111c..f49da46efd 100644 --- a/packages/editor-ui/src/views/WorkflowsView.vue +++ b/packages/editor-ui/src/views/WorkflowsView.vue @@ -95,13 +95,9 @@ data-test-id="browse-sales-templates-card" @click="trackCategoryLinkClick('Sales')" > - + - {{ - $locale.baseText('workflows.empty.browseTemplates', { - interpolate: { category: 'Sales' }, - }) - }} + {{ $locale.baseText('workflows.empty.browseTemplates') }} @@ -268,6 +264,9 @@ const WorkflowsView = defineComponent({ return userRole; }, isSalesUser() { + if (!this.userRole) { + return false; + } return ['Sales', 'sales-and-marketing'].includes(this.userRole); }, },