Skip to content

Commit cdf042b

Browse files
committed
add proper icon for hub scripts in flow items
1 parent a283a54 commit cdf042b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frontend/src/lib/components/flows/map/MapItem.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
} from '@fortawesome/free-solid-svg-icons'
1717
import Icon from 'svelte-awesome'
1818
import IconedResourceType from '$lib/components/IconedResourceType.svelte'
19-
import IconedPath from '$lib/components/IconedPath.svelte'
2019
2120
export let mod: FlowModule
2221
@@ -115,7 +114,7 @@
115114
<Icon data={faLongArrowDown} scale={0.8} />
116115
{:else if mod.value.type === 'script'}
117116
{#if mod.value.path.startsWith('hub/')}
118-
<IconedPath path={mod.value.path} />
117+
<IconedResourceType name={mod.value.path.split('/')[2]} silent={true} />
119118
{:else}
120119
<Icon data={faBuilding} scale={0.8} />
121120
{/if}

0 commit comments

Comments
 (0)