mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 16:02:24 +00:00
fix: silence user-facing toast for non-critical hub script tracking error (#8808)
* fix: silence user-facing toast for non-critical hub script tracking error Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * n --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
<script lang="ts">
|
||||
import { createEventDispatcher, getContext, untrack } from 'svelte'
|
||||
import { Skeleton } from '$lib/components/common'
|
||||
import { classNames, createCache, sendUserToast } from '$lib/utils'
|
||||
import { classNames, createCache } from '$lib/utils'
|
||||
import { APP_TO_ICON_COMPONENT } from '$lib/components/icons'
|
||||
import { IntegrationService, ScriptService, type HubScriptKind } from '$lib/gen'
|
||||
import { Circle, ExternalLink } from 'lucide-svelte'
|
||||
@@ -151,7 +151,7 @@
|
||||
try {
|
||||
await ScriptService.pickHubScriptByPath({ path: item.path })
|
||||
} catch (error) {
|
||||
sendUserToast('Failed to call ScriptService.pickHubScriptByPath: ' + error, 'error')
|
||||
console.error('Failed to track hub script pick:', error)
|
||||
// Don't block the flow if tracking fails
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user