Skip to content

Commit 81ff174

Browse files
viva-jinyiclaude
andcommitted
fix: copyJobId should check asset.id for OSS compatibility
In OSS environments, asset.id is the promptId directly. In Cloud environments, promptId is in user_metadata. Updated copyJobId to check both sources (same as deletion logic). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 91af228 commit 81ff174

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/assets/composables/useMediaAssetActions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ export function useMediaAssetActions() {
183183
const asset = mediaContext?.asset.value
184184
if (!asset) return
185185

186-
// Get promptId from metadata instead of parsing the ID string
186+
// Try asset.id first (OSS), then fall back to metadata (Cloud)
187187
const metadata = getOutputAssetMetadata(asset.user_metadata)
188-
const promptId = metadata?.promptId
188+
const promptId = asset.id || metadata?.promptId
189189

190190
if (!promptId) {
191191
toast.add({

0 commit comments

Comments
 (0)