Skip to content

Commit e17d6a0

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 e93846b commit e17d6a0

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
@@ -208,9 +208,9 @@ export function useMediaAssetActions() {
208208
const asset = mediaContext?.asset.value
209209
if (!asset) return
210210

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

215215
if (!promptId) {
216216
toast.add({

0 commit comments

Comments
 (0)