Fix for automation panel icons
This commit is contained in:
parent
cb2102471b
commit
722fef269f
|
@ -32,7 +32,6 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
$: groupedAutomations = groupAutomations(filteredAutomations)
|
$: groupedAutomations = groupAutomations(filteredAutomations)
|
||||||
|
|
||||||
$: showNoResults = searchString && !filteredAutomations.length
|
$: showNoResults = searchString && !filteredAutomations.length
|
||||||
|
|
||||||
const groupAutomations = automations => {
|
const groupAutomations = automations => {
|
||||||
|
@ -41,7 +40,6 @@
|
||||||
for (let auto of automations) {
|
for (let auto of automations) {
|
||||||
let category = null
|
let category = null
|
||||||
let dataTrigger = false
|
let dataTrigger = false
|
||||||
|
|
||||||
// Group by datasource if possible
|
// Group by datasource if possible
|
||||||
if (dsTriggers.includes(auto.definition?.trigger?.stepId)) {
|
if (dsTriggers.includes(auto.definition?.trigger?.stepId)) {
|
||||||
if (auto.definition.trigger.inputs?.tableId) {
|
if (auto.definition.trigger.inputs?.tableId) {
|
||||||
|
@ -97,7 +95,10 @@
|
||||||
{triggerGroup?.name}
|
{triggerGroup?.name}
|
||||||
</div>
|
</div>
|
||||||
{#each triggerGroup.entries as automation}
|
{#each triggerGroup.entries as automation}
|
||||||
<AutomationNavItem {automation} icon={triggerGroup.icon} />
|
<AutomationNavItem
|
||||||
|
{automation}
|
||||||
|
icon={automation?.definition?.trigger?.icon}
|
||||||
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
|
Loading…
Reference in New Issue