mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 16:02:14 +00:00
refactor(apps): drop (app as any).draft_path casts in AppRow
`ListableApp.draft_path` is declared in openapi.yaml (and the apps.rs type), so the regenerated `$lib/gen` client types it — the `as any` casts were only papering over a stale local gen client. Read `app.draft_path` directly, matching FlowRow/ScriptRow. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -107,19 +107,19 @@
|
||||
: `${base}/apps${app.raw_app ? '_raw' : ''}/get/${app.path}`}
|
||||
kind="app"
|
||||
{marked}
|
||||
path={(app as any).draft_path ?? app.path}
|
||||
summary={app.is_draft ? `${app.summary || (app as any).draft_path || app.path}*` : app.summary}
|
||||
path={app.draft_path ?? app.path}
|
||||
summary={app.is_draft ? `${app.summary || app.draft_path || app.path}*` : app.summary}
|
||||
workspaceId={app.workspace_id ?? $workspaceStore ?? ''}
|
||||
canFavorite={!app.draft_only}
|
||||
{depth}
|
||||
{keyboardSelected}
|
||||
>
|
||||
{#snippet pathDisplay()}
|
||||
{#if !app.draft_only && (app as any).draft_path && (app as any).draft_path !== app.path}
|
||||
{#if !app.draft_only && app.draft_path && app.draft_path !== app.path}
|
||||
<span class="line-through">{app.path}</span>
|
||||
{(app as any).draft_path}
|
||||
{app.draft_path}
|
||||
{:else}
|
||||
{(app as any).draft_path ?? app.path}
|
||||
{app.draft_path ?? app.path}
|
||||
{/if}
|
||||
{/snippet}
|
||||
{#snippet badges()}
|
||||
|
||||
Reference in New Issue
Block a user