MCPcopy Create free account
hub / github.com/HisMax/RedInk / hasGeneratedImages

Function hasGeneratedImages

frontend/src/composables/useGenerationRestore.ts:12–14  ·  view source on GitHub ↗
(record: HistoryDetail)

Source from the content-addressed store, hash-verified

10 const store = useGeneratorStore()
11
12 function hasGeneratedImages(record: HistoryDetail): boolean {
13 return !!record.images?.task_id && (record.images.generated || []).some(Boolean)
14 }
15
16 function hydrateFromHistory(record: HistoryDetail) {
17 const taskId = record.images.task_id

Callers 1

restoreFromHistoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected