Lint and minor change to trigger name configuration

This commit is contained in:
Dean 2024-07-02 11:59:11 +01:00
parent b6f8649c05
commit 3990387c1d
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<script>
import CreateAutomationModal from "./CreateAutomationModal.svelte"
import { Modal, notifications, Layout, Icon } from "@budibase/bbui"
import { Modal, notifications, Layout } from "@budibase/bbui"
import NavHeader from "components/common/NavHeader.svelte"
import { onMount } from "svelte"
import {
@ -33,7 +33,7 @@
$: groupedAutomations = filteredAutomations.reduce((acc, auto) => {
acc[auto.definition.trigger.event] = acc[auto.definition.trigger.event] || {
icon: auto.definition.trigger.icon,
name: auto.definition.trigger.name,
name: (auto.definition.trigger?.name || "").toUpperCase(),
entries: [],
}
acc[auto.definition.trigger.event].entries.push(auto)
@ -67,8 +67,8 @@
<div class="side-bar-nav">
{#each Object.values(groupedAutomations || {}) as triggerGroup}
<div class="nav-group">
<div class="nav-group-header" title={triggerGroup?.name.toUpperCase()}>
{triggerGroup?.name.toUpperCase()}
<div class="nav-group-header" title={triggerGroup?.name}>
{triggerGroup?.name}
</div>
{#each triggerGroup.entries as automation}
<NavItem