only use loadIndividualStepsStates when no history

This commit is contained in:
Guilhem
2025-06-23 15:32:19 +01:00
parent ab0bd23b4f
commit bfc37b7e7f
@@ -571,16 +571,9 @@
$executionCount = $executionCount + 1
}}
on:jobsLoaded={async () => {
// on:jobsLoaded is not the right event, it can be triggered before all jobs are loaded
if (initial) {
try {
await loadIndividualStepsStates()
// All individual step states have been loaded
} catch (error) {
console.warn('Failed to load individual step states:', error)
// Still call the callback even if some loading failed
} finally {
onJobsLoaded?.()
}
onJobsLoaded?.()
}
}}
bind:selectedJobStep